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

Duplicate File with RadUpload

3 Answers 136 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 03 Aug 2009, 03:53 PM
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

3 Answers, 1 is accepted

Sort by
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 04 Aug 2009, 02:22 PM
Anyone ? Please :)
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 04 Aug 2009, 03:37 PM
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 ?
0
Accepted
Ivan
Telerik team
answered on 04 Aug 2009, 06:39 PM
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.
Tags
Upload
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Ludovic Gerbault
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or