How to make a temprory file during upload?

2 posts, 0 answers
  1. mahdi gh
    mahdi gh avatar
    14 posts
    Member since:
    May 2010

    Posted 22 Dec 2011 Link to this post

    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 \\\Videos

  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 27 Dec 2011 Link to this post

    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 \\\Videos.

    Petar Mladenov
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top