Duplicate File with RadUpload

4 posts, 1 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 03 Aug 2009 Link to this post

    Hello

    I have a scenario, and I was wondering if the RadUpload control could help me

    Here's what I have to do :
    someone upload several files from his hard disk using the RadUpload interface. On the server side, i've used asp controls before launching silverlight to create a folder named from an id (this part isn't a problem). The files are uploaded in this new folder -not a problem either). During the process, they are renamed to fit what I need (still not a problem).

    Here's my problem :

    Once the download is complete, I want to list all the files I've just uploaded, shrink them, and copy them into a subfolder (for thumbnails)

    Since I can't access file system in silverlight, I'm kind of screwed with the copy and shrink process. So I was wondering, is there a way for the RadUpload control to upload twice the same files at once, or upload them in two separate locations ?

    Regards
    Ludovic
  2. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 04 Aug 2009 Link to this post

    Anyone ? Please :)
  3. DevCraft banner
  4. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 04 Aug 2009 Link to this post

    One last thing.

    The renaming method I'm using works great, but the thing is that I'm renaming the files before they are uploaded.

    In my scenario, several items can have the same image,so my image must duplicate itself with different names.

    I would work fine if the renaming occured after the upload, but right now, old files are being overwritten with the last item name on my collection.

    So is there anyway I can rename the files after they've been uploaded ?
  5. Answer
    Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 04 Aug 2009 Link to this post

    Hello Subileau Pascal,

    Thank you for interest in the RadUpload control.

    We think that the better approach is to create thumbnails at the server side. For example after the file is successfully uploaded you can start your procedure for thumbnail creation. This way your client code will not deal with both the creation and the upload of the thumbnail file. For example you can follow the explanation in the Process files on the server after upload article. Here are more RadUpload related articles.

    Please give it a try and let us know if you have more questions.

    Kind regards,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top