Problems with Multi File Upload when over riding the RadUploadHandler ProcessStream

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    2 posts
    Member since:
    Feb 2014

    Posted 20 Apr 2015 Link to this post

    I have a problem getting the multi file upload process to work when I override the RadUploadHandler ProcessStream.  I have adapted an example of code that was posted on an earlier thread showing how to override the ProcessStream in the RadUploadHandler, I did this so that I can change the default behaviour of the upload control to save the documents to a database rather than to a file server.  However since implementing the change I have two problems: 

    • The first problem is identifying the different files in the process stream.  In my case I send a single stream containing multiple files (up to a max size of 25mb) to be uploaded, my handler rightly recognises that there are multiple files in the stream but the GetFileName() method only returns the name of the first file in the batch.
    • My second problem is that upon completion the RadUpload control doesn't show that all the files have been uploaded, it only shows the first one as being uploaded.  I tried intercepting the SendFeedback method within my ProcessStream sub to send back the proper filenames for each file in the batch but this still didn't produce the result I wanted. 

    Any help would be much appreciated. Andy

  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 21 Apr 2015 Link to this post

    Hello Andy,

    I am not sure how exactly you have modified the ProcessStream() method and what is you internal logic there. That is why I would like to ask you for a sample project with you custom implementation. Doing so will help us better understand your scenario and provide you with the best possible solution for your scenario.

    Looking forward to hearing from you.

    Kind regards,
    Kiril Vandov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. DevCraft banner
  4. Andrew
    Andrew avatar
    2 posts
    Member since:
    Feb 2014

    Posted 21 Apr 2015 in reply to Kiril Vandov Link to this post

    Hi Kiril

    Actually I have managed to resolve the issues I was having by overriding the SaveChunkData method instead, so all is okay now thanks.

    Andy

  5. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 22 Apr 2015 Link to this post

    Hello Andy,

    I am glad to hear that you have found way to solve the problems that you were having. Please let us know if you have further questions.

    Kind regards,
    Kiril Vandov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top