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

Problems with Multi File Upload when over riding the RadUploadHandler ProcessStream

3 Answers 36 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 20 Apr 2015, 03:33 PM

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

3 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 21 Apr 2015, 11:34 AM
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.

 
0
Andrew
Top achievements
Rank 1
answered on 21 Apr 2015, 04:53 PM

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

0
Kiril Vandov
Telerik team
answered on 22 Apr 2015, 06:55 AM
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.

 
Tags
Upload
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or