470,636 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

How can I upload images from a basic client?

Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet). The
same functionality that online datiing agencies use to let people save their
photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM)
using nothing more than JavaScript, but I'll be damned if I can find how.

Would one of you more experienced JavaScript people please point me in the
right direction.

Thank you,
Ron.

Jul 23 '05 #1
5 1363

"Ron Brennan" <rb******@magma.ca> wrote in message
news:pr********************@magma.ca...
Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet). The
same functionality that online datiing agencies use to let people save their photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM)
using nothing more than JavaScript, but I'll be damned if I can find how.

Would one of you more experienced JavaScript people please point me in the
right direction.

Thank you,
Ron.


http://www.jguru.com/faq/view.jsp?EID=160

Jul 23 '05 #2

"Murray" <pa***@SPAMoffSPAMMER.optusSP4Mnet.com.au> wrote in message
news:40***********************@news.optusnet.com.a u...

"Ron Brennan" <rb******@magma.ca> wrote in message
news:pr********************@magma.ca...
Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet). The same functionality that online datiing agencies use to let people save

their
photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM) using nothing more than JavaScript, but I'll be damned if I can find how.
Would one of you more experienced JavaScript people please point me in the right direction.

Thank you,
Ron.


http://www.jguru.com/faq/view.jsp?EID=160


No Javascript is necessary btw.
Jul 23 '05 #3
Much appreciated; thank you Murry.

"Ron Brennan" <rb******@magma.ca> wrote in message
news:pr********************@magma.ca...
Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet). The
same functionality that online datiing agencies use to let people save their photograph with their profiles. (My application is an online Want Ads.)

I feel that this must be possible within a minimal client (without a JVM)
using nothing more than JavaScript, but I'll be damned if I can find how.

Would one of you more experienced JavaScript people please point me in the
right direction.

Thank you,
Ron.


Jul 23 '05 #4
"Ron Brennan" <rb******@magma.ca> wrote in message news:<pr********************@magma.ca>...
Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet).


I don't believe this is so much of a JavaScript matter (depending on
requirements). Use the HTML form element, <input type="file">, and
post the form. How it is dealt with at the server varies by language.
I know it is relatively easy in PHP, and very difficult in ASP.
Jul 23 '05 #5
Yes, that was the method described and expanded on at the link Murry
provided. It also provides a Browse button, which I also need. Thanks.
"Saint Jude" <th**************@hotmail.com> wrote in message
news:d9**************************@posting.google.c om...
"Ron Brennan" <rb******@magma.ca> wrote in message

news:<pr********************@magma.ca>...
Good morning.

I would like to allow a user to browse his local directories, choose an
image (probably .jpeg) file, and upload it to the server (a servlet).


I don't believe this is so much of a JavaScript matter (depending on
requirements). Use the HTML form element, <input type="file">, and
post the form. How it is dealt with at the server varies by language.
I know it is relatively easy in PHP, and very difficult in ASP.

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Adrian Hill | last post: by
4 posts views Thread by NohaKhalifa | last post: by
1 post views Thread by BW | last post: by
3 posts views Thread by Pitcairnia | last post: by
1 post views Thread by joshbeall | last post: by
9 posts views Thread by Steve Poe | last post: by
4 posts views Thread by samatair | last post: by
1 post views Thread by Korara | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.