Keep Both or Replace does not work

Hello,

So, the issue is that whenever I upload a file that already exists it pops up a dialog and If I choose Keep Both or Replace it does nothing.
It doesn't even trigger a request to the backend.
It shows a modal with bad request message (attached)

The interesting thing is that when I try to reupload the same file again for the second time, and intercepting the request triggered, It's the option I chose from the last time which is either "KeepBoth" or "Replace". 

Thanks

Attachment: KeepBothReplaceIssue_7e657b40.rar

3 Replies 1 reply marked as answer

SM Shalini Maragathavel Syncfusion Team April 28, 2021 02:38 PM UTC

Hi Omar,   
  
Greeting from Syncfusion support. 

Query#1: It shows a modal with bad request message


We checked the reported problem but unfortunately we were unable to reproduce it from our end and the file upload action of same files in File Manager is working fine. Please refer the below screenshot for your reference,
 
Screenshot:
 
Query#2: If I choose Keep Both or Replace it does nothing.

Based on your query, we suspect that you are facing issues in Keep both/replace option which is shown while reuploading the same file in the File Manager. So, we have tried to reproduce the issue by reuploading the same file but we are unable to reproduce it at our end and the files are added based on the option chosen in the below popup. Refer to the following screenshots. 

Screenshot:


 

For your convenience, we have attached the sample and please find the sample for your reference 

  
  
Demo link: https://ej2.syncfusion.com/vue/demos/#/material/file-manager/overview.html

If the issue persists , kindly share the following details that will be helpful for us to provide better solution.

1) Service provider used in your application?

2) Share your complete File Manager rendering code.

3) If possible, please replicate the issue in the attached sample or provide us a simple sample to replicate the issue. 
 

4) Syncfusion package version used in your end.

5) Have you done any customization in File upload action of service provider? 
Regards,
Shalini M. 


Marked as answer

OM Omar April 29, 2021 03:55 PM UTC

Hi Shalini,

I'm using ASPNET for the backend and it's working perfectly fine same as the service repo.
Unfortunately I will not be able to share all of the file manager code because it includes some business logic.
I've checked the sandbox url but it doesn't open.

So, please check the attached recording to get more understanding of the issue.
It's purely frontend and has nothing to do with backend.
The thing is that it doesn't fire a request to the backend when I click 'Keep Both'

Thanks

Attachment: 20210429_164840_53d43d32.rar


SM Shalini Maragathavel Syncfusion Team April 30, 2021 03:35 PM UTC

Hi Omar,   
  
Sorry for the inconvenience. 

We checked the reported problem but unfortunately we are unable to reproduce it from our end. As the  Keep both/replace option which is shown while reuploading the same file in the File Manager is working properly at our end. You can check the below sample and video demo for your reference, 

Sample: https://codesandbox.io/s/vue-template-forked-251d5

Video Demo: https://www.syncfusion.com/downloads/support/forum/164912/ze/CODESA~21682765300.zip

Note: Please run our service provider provided in our last update before running the sandbox sample.  

If the issue still persists, then please share us the following information to validate further on this, 

  • Syncfusion package version.
  • Whether the issue occurs in specific browser or in all browsers?
  • Are you facing this issue while uploading any specific file type? If yes, please share the file type details.
  • Please let us know if you are able to reproduce your problem in the above shared sample.
  • If possible share us a simple sample to replicate the problem.

Regards, 
Shalini M. 


Loader.
Up arrow icon