Rename file without change extension

Hi

Its possible to rename files in file manager without permit that user change extension?


Thanks in advance!



3 Replies

SP Sowmiya Padmanaban Syncfusion Team June 28, 2021 10:35 AM UTC

Hi Jose,  
  
Greetings from Syncfusion support. 
  
We have checked your requirement with FileManager component. By setting false for ShowFileExtension property of FileManager component, hides the extension of all the files (Prevents the user from changing the extension of files). 
  
Please refer the below code snippet. 
  
<SfFileManager @ref="filemanager" ID="filemanager" TValue="FileManagerDirectoryContent" ShowFileExtension="false"> 
        <FileManagerAjaxSettings Url="/api/Home/FileOperations" 
                                UploadUrl="/api/Home/Upload" 
                                 DownloadUrl="/api/Home/Download" 
                                 GetImageUrl="/api/Home/GetImage"> 
        </FileManagerAjaxSettings> 
    </SfFileManager> 
  
Screenshot: 
  
 
  
Refer the sample link below. 
  
  
Please, refer to the below links to more about the FileManager component. 
  
  
  
  
Please let us know, if you need any further assistance. 
  
Regards,  
Sowmiya.P 



JL jose luis barajas June 28, 2021 01:57 PM UTC

Hi  Sowmiya 

Thanks for your support!,



SP Sowmiya Padmanaban Syncfusion Team June 29, 2021 05:04 AM UTC

Hi Jose,  
  
We are happy to hear that your problem has been resolved. Please contact us, if you need any further assistance. We will happy to assist you. 
  
Regards,  
Sowmiya.P 


Loader.
Up arrow icon