Connecting Tech Pros Worldwide Help | Site Map

Want to upload a file with one click

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 05:36 PM
Julia Briggs
Guest
 
Posts: n/a
Default Want to upload a file with one click

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


  #2  
Old July 23rd, 2005, 05:36 PM
Oli Filth
Guest
 
Posts: n/a
Default 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
  #3  
Old July 23rd, 2005, 05:36 PM
Ivo
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.