473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1421

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Adrian Hill | last post by:
Hi all, I can upload plaintext files to the server fine, but when I try to upload a pdf, it tells me that the file is damaged and could not be repaired. The file is uploaded to the correct place...
4
by: NohaKhalifa | last post by:
Dear All; I'm developing a web site and i need to make adminisration for this site it's a site for Real Estates . But I don't need the administration to be online .. I want them to fill data...
1
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp"...
3
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about...
1
by: joshbeall | last post by:
Hi All, If I drop a form onto my page that allows file uploads, I know well enough how to handle the file upload in the server side via PHP. However, I have a question: when my browser...
4
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image...
3
acoder
by: acoder | last post by:
How to Upload a File in Coldfusion Use the cffile tag for uploading files to the server. Note that allowing people to upload files is fraught with danger and only trusted users should be...
9
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
4
by: samatair | last post by:
Hi I have being working on a form. The form allows 5 image files to be uploaded with other user details. All the 5 image files are uploaded at the same time (with a single submit button click)....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.