The file uploaded by filemanager not be able to preview by google drive when I use google drive as file system provider

I am using google drive as file system provider. When I upload pdf and doc/docx files via filemanager, on the google drive side it shows "No preview available", but when I download the file, it is not broken



2 Replies

SS Sivakumar ShunmugaSundaram Syncfusion Team December 14, 2022 03:57 PM UTC

Hi Anji,


Greetings from Syncfusion support.


We understand that you are facing an issue with previewing in Google Drive while uploading a pdf or doc file via the FileManager component. Currently, we are checking the reported issue by preparing a client-side FileManager component with the Google Drive service provider to replicate the reported issue. However, we require some additional time to validate the reported issue from our end and will provide additional information on or before December 19, 2022.


Regards,

Sivakumar S



SS Sivakumar ShunmugaSundaram Syncfusion Team December 20, 2022 10:44 AM UTC

Anji, As per the shared details, we were able to replicate the reported issue from our side. On further validation, it was identified that the reported issue is caused by an incorrectly added content type value when uploading a file using the FileManager component's google-drive-aspcore-file-provider. We have fixed the reported issue with the content type value and included the change in our GitHub repository. Now we can preview the files uploaded via the FileManager component within Google Drive.


Sample: https://codesandbox.io/s/bold-cherry-nu1ime


GitHub location: https://github.com/SyncfusionExamples/google-drive-aspcore-file-provider


Check out the shared service provider and confirm whether the issue is resolved from your side.


Loader.
Up arrow icon