Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Want to upload a file with one click

Reply
Thread Tools

Want to upload a file with one click

 
 
Julia Briggs
Guest
Posts: n/a
 
      02-06-2005
I am wanting to simplify a page that I'm writing... the guts behind the
page is PHP and wondering if it's possible to upload a photo in one
click. How would I approach having the browsed file detected once it's
populated into the form field and have it auto uploaded? Can this be
done?

Sincerely,

Julia

 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      02-06-2005
Julia Briggs wrote:
> I am wanting to simplify a page that I'm writing... the guts behind the
> page is PHP and wondering if it's possible to upload a photo in one
> click. How would I approach having the browsed file detected once it's
> populated into the form field and have it auto uploaded? Can this be
> done?
>


Due to the security implications involved with file upload controls,
most modern browsers do not allow scripting actions to be performed on
them or with them.

Anyway, why is it so much more complicated to have the user click
"submit" once they've chosen a file?


--
Oli
 
Reply With Quote
 
 
 
 
Ivo
Guest
Posts: n/a
 
      02-06-2005
"Julia Briggs" wrote
> I am wanting to simplify a page that I'm writing... the guts behind the
> page is PHP and wondering if it's possible to upload a photo in one
> click. How would I approach having the browsed file detected once it's
> populated into the form field and have it auto uploaded? Can this be
> done?


onchange="this.form.submit();"

untested,
--
Ivo


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
click click click Andy Morrison Computer Support 7 12-20-2007 06:50 AM
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
File Upload with asp.net by one Click Stefan Berger ASP .Net 1 07-22-2005 10:29 AM
Hi I have one web application and i want to get the number of users who are currently accessing the application. Also I want to get the user details of each user, which is stored in a database. How can I do this? Pls help. Getting No: and anu Java 11 05-12-2005 03:25 PM
File Upload Issue - INPUT type="file" and Use of .click() HVG ASP .Net 2 06-13-2004 07:49 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57