By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,196 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

File upload problem

P: 31
hi all,
My problem is that I want to upload a file without asking the user to select the file as I know the location of the file on the users machine.

The whole process goes like this,
User will invoke scanner from javascript and when the scanning was done
user will get an Upload button, when user clicks on that upload button the file should be uploaded to the server.

Able to invoke scanner and also saving file was done on clients machine but, not able to do file upload automatically.
Is there any way to do it????

regards
Nelluru
Jul 24 '08 #1
Share this Question
Share on Google+
4 Replies


rnd me
Expert 100+
P: 427
no. wont work. user must select a file, or value is not submitted as a security precaution.
Jul 24 '08 #2

P: 31
no. wont work. user must select a file, or value is not submitted as a security precaution.
there is a way to upload files in Firefox.

I am able to upload text files, but not able to upload binary files like images

Is there any way to read binary files in javascript??

regards
Nelluru
Jul 29 '08 #3

rnd me
Expert 100+
P: 427
you can simply read the data of a file input in firefox, no about:config hacking and xpconnect involved. every file input has a files property, an array of files. each value has a toDataURL method, as well as getAsBinary().
Jul 29 '08 #4

P: 31
you can simply read the data of a file input in firefox, no about:config hacking and xpconnect involved. every file input has a files property, an array of files. each value has a toDataURL method, as well as getAsBinary().
Sorry Forgot to mention that I have to read binary files for Internet Explorer not for Firefox
Jul 29 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.