This is a migrated thread and some comments may be shown as answers.

Why uploaded file name not same original file name?

3 Answers 72 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Suwit
Top achievements
Rank 1
Suwit asked on 19 Mar 2015, 09:50 AM
I using RadAsyncUpload control and upload file by automatic after select file in "choose file to upload" dialog or drag and drop files to drop zone. I found file name at target folder not same original file name or cannot read.
Sample see attached image. Original file name is "SelfUpdatingLauncher.zip but in target folder is "1426758505493SelfUpdatingLauncher.zip".
Please advice.

3 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 19 Mar 2015, 11:06 AM
Hi Suwit,

This is temporary name, created to avoid files overwriting. The uploaded file has such name only when it resides in the Temporary Folder. After the file submitted it will be renamed.

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TemporaryFolder="~/Temp" TargetFolder="~/Uploas"></telerik:RadAsyncUpload>
<telerik:RadButton ID="btnSubmit" runat="server" Text="Submit"></telerik:RadButton>

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Suwit
Top achievements
Rank 1
answered on 19 Mar 2015, 12:49 PM
Thank you for your response. I'm try follow you advice but not found uploaded file in target folder. 
Is possible save file to target folder instead temporary folder without code runat server?  
if yes, Have you any approach? 
if no, Is this limitation?  
0
Hristo Valyavicharski
Telerik team
answered on 19 Mar 2015, 03:16 PM
Make sure that you give write permissions to both folders. Do meantt without the runat="server" tag?

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Suwit
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Suwit
Top achievements
Rank 1
Share this question
or