Can I delete file from disc after file upload?

Thread is closed for posting
2 posts, 0 answers
  1. Aleksejs
    Aleksejs avatar
    10 posts
    Member since:
    Aug 2010

    Posted 23 Mar 2011 Link to this post

    Hello Telerik's team!

    I would know, is it possible to delete file after upload it?

    Thank you!
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 28 Mar 2011 Link to this post

    Hi Aleksejs,

    Files could be deleted once they are uploaded. You could use the following code to delete the first file from the UploadedFiles collection of RadUpload:
    string path = Path.Combine(Server.MapPath(RadUpload.TargetFolder), RadUpload.UploadedFiles[0].GetName());

    Also you could check these demos here and here.

    Best wishes,
    Dimitar Terziev
    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top