Last post Oct 18, 2013 12:05 AM by chetan.sarode
Oct 17, 2013 12:15 PM|gj11944|LINK
I want to use ajax file upload control ...but it starts upload file as soon as i select file ...
how to alter this behaviour ?
so that i can select file and then click button to upload file .
Oct 17, 2013 02:02 PM|DarrenJMcLeod|LINK
Have you considered using the FileUpload control instead? There is a good example that does exactly what you describe using the
FileUpload control here http://forums.asp.net/t/1244698.aspx
Oct 17, 2013 02:06 PM|Rajat|LINK
Oct 17, 2013 09:12 PM|jats_ptl|LINK
This cannot be done. Firing the file type input from other control is disabled due to security reason. So this cant be done.
Only workaround to style fileupload control is to place the control with opacity 0 and placing our control below this file control and changing the Z-index in HTML. Infact this is the exact trick used be the AsyncFileUpload control.
Here is the link explaing the trick http://www.quirksmode.org/dom/inputfile.html
Apply this trick on the AsyncFileUpload which internally is applying it on HTML file upload control
Source: Fire AsyncFileUpload control through a Button
or else refer:
Hope this helps.
Oct 18, 2013 12:05 AM|chetan.sarode|LINK
You'll first see if your browser does support HTML5 and CSS3 File APIs. If you have latest Chrome or FireFox, you can try test an image file at that page. Try not using the "submit" button. When you have selected files successfully, you'll see upload button