File manager displaying Illustrator, Photoshop images and adding tags

Hi
Is it possible to display Illustrator, Photoshop images and add tags to search
We're trying to see if we can use the file manager component as an asset management system
Cheers

1 Reply 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team March 10, 2021 10:29 AM UTC

Hi Fola, 
 
Thanks for contacting Syncfusion Support. 
 
Yes. The given scenario “Is it possible to display Illustrator, Photoshop images and add tags to search” is possible. 
 
In the below sample, we have provided an example to obtain the filter results with a button click. 
 
In FileManager component, we have filterFiles() public method. Using this method, you can perform search operations based on your requirement and pass the searchString as parameter. Refer to the below code snippet.  
 
 filter(): void { 
    let obj = { searchString: "1.png" }; 
    this.fileInstance.filterFiles(obj); 
  } 
 
In your controller part, you can perform the search operations as shown below 
 
public object FileOperations([FromBody] FileManagerDirectoryContent args)  
{  
  switch (args.Action)  
     {         
      case "filter":  
          if (args.SearchString == "")  
           {  
           // Perform read operation while search string is empty.  
            return this.operation.ToCamelCase(this.operation.GetFiles(args.Path, args.ShowHiddenItems));      
            }  
           else  
            {  
            // Perform Search operation while serach string has value.  
            args.SearchString = args.SearchString + "*";  
            return this.operation.ToCamelCase(this.operation.Search(args.Path, args.SearchString, args.ShowHiddenItems, args.CaseSensitive));  
             }              
      }  
    return null;  
}  
 

 
 
For your reference, we have prepared a sample.  
  
  
  
Note: Run the file manager service application and refer the local hostURL in FileManager sample.  
 
 
                                                                                                                                         
   
Please let us know, if you need any further assistance.  
  
Regards, 
 
Sharon Sanchez S. 
 


Marked as answer
Loader.
Up arrow icon