469,271 Members | 1,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

File upload problem

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
4 1549
rnd me
427 Expert 256MB
no. wont work. user must select a file, or value is not submitted as a security precaution.
Jul 24 '08 #2
Nelluru
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
427 Expert 256MB
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
Nelluru
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.

Similar topics

2 posts views Thread by matt | last post: by
3 posts views Thread by Bijoy Naick | last post: by
6 posts views Thread by tshad | last post: by
5 posts views Thread by William LaMartin | last post: by
6 posts views Thread by Vic Spainhower | last post: by
7 posts views Thread by pbd22 | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.