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

RadUpload and Thumbnail

6 Answers 188 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mauro
Top achievements
Rank 1
Mauro asked on 04 Aug 2008, 11:56 AM
Hi
I have a scenario where I have to upload more than a file.
I want use radUpload in combination with progressbar.

I set dynamically the number of files that going to upload.

Let's assume I have upload 10 files, I need create a thumbnail when each file is phisical upload on the server.
It is this possible ? Please help

cheers
M.


6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 04 Aug 2008, 12:35 PM
Hello Mauro,

I believe that this help article will help you get started:
Resizing Images (Creating Thumbnails)

Greetings,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mauro
Top achievements
Rank 1
answered on 04 Aug 2008, 12:57 PM
Hi

the problem is not how resize or create an thumbnail.

My needs are :
I have 10 files to upload
Does the radControl fires an events per each file or I have to wait the that the controls finish to upload all of them ?

If fires an event on each file here I can create the thumbnail.

thanks
M.
0
Mauro
Top achievements
Rank 1
answered on 04 Aug 2008, 12:57 PM
Hi

the problem is not how resize or create an thumbnail.

My needs are :
I have 10 files to upload
Does the radControl fires an events per each file or I have to wait the that the controls finish to upload all of them ?

If fires an event on each file here I can create the thumbnail.

thanks
M.
0
Veselin Vasilev
Telerik team
answered on 04 Aug 2008, 03:04 PM
Hi Mauro,

If there are any selected files in the RadUpload - they all will be sent to the server on the next postback.

Please check these articles:
I hope this helps.

Regards,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mauro
Top achievements
Rank 1
answered on 04 Aug 2008, 03:12 PM
Do you read the post before answer ?
0
Veselin Vasilev
Telerik team
answered on 07 Aug 2008, 07:08 AM
Hello Mauro,

RadUpload does not fire an event for each uploaded file. It uploads all the files at once on the postback to the server so you have to wait for the upload to finish.
The first link I gave you points to a help article that shows how to iterate through all uploaded files:

protected void Button1_Click(object sender, System.EventArgs e) 
  foreach (UploadedFile f in RadUpload1.UploadedFiles) 
  { 
      // do your custom job here 
 
      f.SaveAs( "c:\\uploaded files\\" + f.GetName(), true); 
  } 
 

Sincerely yours,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Mauro
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Mauro
Top achievements
Rank 1
Share this question
or