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

How to make a temprory file during upload?

1 Answer 28 Views
Upload
This is a migrated thread and some comments may be shown as answers.
mahdi gh
Top achievements
Rank 1
mahdi gh asked on 22 Dec 2011, 08:56 AM
Hi
I'm very interested in this control. I have a problem here,
assume my Selected file name is "myFile.mpg" . I want during upload in the uploadTargetFolder ,  file name be "myFile.mpg_temp" and then after upload complete, the original file name restored.
how can i do this?
and one another thing is how can i upload to a shared folder in our network? like \\192.168.72.226\Videos

thanks

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Dec 2011, 10:05 AM
Hi Mahdi Gh,

 You can modify the name of the file on both the client and the server side of your application. This help article will show you how to do this. 
You can get the file uploaded on the server by creating a custom Upload Handler and overriding the SaveChunkData method. Checking the IsFinalFileRequest() could be an indicator that the File is Uploaded. The rest of the work is your custom code that will send the file to your folder in \\192.168.72.226\Videos.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
mahdi gh
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or