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

Name/Value on Uploaded files

1 Answer 60 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jessica
Top achievements
Rank 1
Jessica asked on 09 Oct 2018, 10:46 AM

Hi,

 

When I upload a file using the Upload control, I want to be able to change the name of the file on the server, but I want the user to see the original file name.

 

Is there a way to have a different name and value for each file in the list? If so, how is the value set?

 

Thanks,

Jess

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 11 Oct 2018, 06:08 AM
Hi Jess,

The Upload has no capabilities of renaming an uploaded file on the server. The widget allows you to select a file, it displays the file as selected and sends it to the server synchronously or asynchronously depending on the mode used. If you want to rename a file uploaded on the server you could consider using the approach suggested in this stackoverflow thread.

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Upload
Asked by
Jessica
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or