I'm implementing a file upload with direct access to DB with custom http handler. I read all the samples but I dont understand how to add an additional description field that the user have to write before sent the file.
I have to implement a page like this http://demos.telerik.com/aspnet-ajax/asyncupload/examples/imageuploader/defaultcs.aspx adding a description textbox, sent this value with the handler and save all to DB.
It's this possible?
11 Answers, 1 is accepted
I want to use async upload with not page post...so, this is why I'd to use custom http handlers
I've a texboxt for description and asyncupload component and then I want to save description with the custom configuration...but I dont understand how to do.
I am not sure about your scenario. I suppose you want to add the additional textbox and get the value in the code behind. Following is the sample code that I tried to achieve the scenario.
Hope this helps.
I've change copying the name of methods and classes for privacy, so you can find some problems running the code.
My problem if after selecting one single file to attach the description written in textbox.
Thanks for any suggestion
You can use the value of the field in the onClientFileUploading event by using Query String Parameters.
Hope this will be helpful.
the Telerik team
Only another question because there is a problem with server event FileUploaded: I see that every time I upload a file, this event add a file upload response.
For sample...I've sent a file, and fileuploaded was called one time, then I sent another file and Fileuploaded was called twice and uploaded result have all data.
There is a method to solve this problem?
It is not quite clear to me what exactly is the unusual behavior you explain but I will clarify that -the server-side FileUploaded occurs after a file is uploaded and a postback is triggered as it is mentioned here.
If you observe some unusual issue with it please provide the exact steps to reproduce it so we could inspect it and be more helpful.
the Telerik team
I am trying to create a http handler inside a Custom Control e.g.
Is it really possible to use this Handler in web application? When i tried to register the handler in web.config, i get below Message
"RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly."
Can someone please help?
The error that you observe is seen when there are no files in the request. in this case it is not executed from the upload and should not proceed.