Automatic File renaming issue

1 Answer 50 Views
CloudUpload
Michel
Top achievements
Rank 1
Michel asked on 15 Mar 2023, 03:47 PM | edited on 15 Mar 2023, 03:49 PM

Hello,

I am facing an issue when uploading to AWS S3, which is automatic renaming of the uploaded file 

original file name is BD-september-2022-quarter.csv

and the new file name is : 03fb8435-90ea-4378-a602-925d37db8277_BD-september-2022-quarter.csv

i don't know why after upload the original filename is not being kept
 

<telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" RenderMode="Lightweight" MultipleFileSelection="Automatic" OnClientFileUploading="OnClientFileUploading" AllowedFileExtensions=".csv" ProviderType="Amazon" localization-SelectButtonText="Browse to Upload ..." MaxFileSize="3145728" OnFileUploaded="RadCloudUpload1_FileUploaded"/>

Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 20 Mar 2023, 10:15 AM

Hello Michel,

The CloudUplaod Control prepends the GUID to the file name to avoid overwriting them. If you do not want that to happen, you can implement a Custom handler and upload the files by their original name. Here is an article explaining how to upload the files to custom folders: Files Uploading in Custom Folder at Runtime

You can commit the GUID part and use the desired folder and file names you want to upload.

I hope this will be helpful.

Regards,
Attila Antal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
CloudUpload
Asked by
Michel
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or