Batch upload questions

4 posts, 0 answers
  1. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 03 Aug 2010 Link to this post

    Hi,

    I have problems getting information back for the uploaded files using batch upload using Radupload. I need the filenames for further processing i.e. saving to the database. I have followed the instructions written in the link http://www.telerik.com/support/kb/silverlight/upload/batch-upload.aspx.


    According the link for getting parameter value for "ProcessFilesOnServer" is not working with the last version of telerik (version 2010.2.714.35)

    I have replaced value = this.Request.Form[key];
    with value = this.GetQueryParameter(key); as mentioned in the article

    furthermore the LastFileUploadedSuccessfully procedure seems not working because   this.Result.ContainsKey(RadUploadConstants.ParamNameSuccess) should return success when the last file is uploaded but it always returns false.


    I try to upload the filecount to the server using AdditionalPostFileds and GetQueryParameter but it returns always null.  In the article Overriding the ProcessStream method is also mentioned but more details would be welcome.


    I have downloaded an example for radupload but its based on the old version/method. Could u provide an working example for batch upload using the new version. With a working example its easier to adjust to our needs, especially when information about the new features are scattered in different postings and help files (mostly not current anymore).


    Thanks,


    Henk

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 05 Aug 2010 Link to this post

    Hi Henk,

    Currently we are in the process of updating the KB and documentation of RadUpload. Meanwhile, this help topic might help you with your scenario.

    All the best,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 05 Aug 2010 Link to this post

    Hi Kiril,

    I have read the help topic. You may missed in my posting the "I try to upload the filecount to the server using AdditionalPostFileds and GetQueryParameter but it returns always null"...

    Any idea why GetQueryParameter is null? I am stuck now!

    The batch upload succeeds when I for example upload 3 files. But the problem is that I need to know #number of files uploaded and when the last file is finish before inserting the files to the database.


    Henk
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 11 Aug 2010 Link to this post

    Hi Henk,

    I tried setting parameters in the FileUploadStarting event and as post parameters. Indeed the success parameter is not set.

    Can you use the FinalFileRequest and FinalUploadRequest as a success check. When both are "True", then you can upload process your files.

    The total file count and current file number can be saved as file parameters. In the FileUploadStarting event handler.

    You can have a look at the attached project, the setting and reading parameters does work for me there.

    Best wishes,
    Miroslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top