Connecting Tech Pros Worldwide Help | Site Map

Want to upload a file with one click

Julia Briggs
Guest
 
Posts: n/a
#1: Jul 23 '05
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

Oli Filth
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Want to upload a file with one click


Julia Briggs wrote:[color=blue]
> 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?
>[/color]

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
Ivo
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Want to upload a file with one click


"Julia Briggs" wrote[color=blue]
> 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?[/color]

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

untested,
--
Ivo


Closed Thread