RadUpload and Thumbnail

Thread is closed for posting
7 posts, 0 answers
  1. Mauro
    Mauro avatar
    13 posts
    Member since:
    Aug 2008

    Posted 04 Aug 2008 Link to this post

    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.


  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 04 Aug 2008 Link to this post

    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.
  3. Mauro
    Mauro avatar
    13 posts
    Member since:
    Aug 2008

    Posted 04 Aug 2008 Link to this post

    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.
  4. Mauro
    Mauro avatar
    13 posts
    Member since:
    Aug 2008

    Posted 04 Aug 2008 Link to this post

    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.
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 04 Aug 2008 Link to this post

    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.
  6. Mauro
    Mauro avatar
    13 posts
    Member since:
    Aug 2008

    Posted 04 Aug 2008 Link to this post

    Do you read the post before answer ?
  7. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Aug 2008 Link to this post

    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.
Back to Top