Justin, Client Side: <form method="post" action="" enctype="multipart/form-data"> <input type="file" name="newfile" value=""/> <input type="submit" name="submit" value="Upload File"/> </form>
This will present a broswe button and text box for the user to select the file. Server Side: Look at FileUpload http://jakarta.apache.org/commons/fileupload/. If using Struts (http://struts.apache.org/) then you already have access to FileUpload so look at the JavaDocs for it to find how to use it. Hope this has helped. PJ On Wed, 2004-09-22 at 09:36, Justin Jaynes wrote: > Well, > > As Yaov said this list was ok for JSP development, > here I go. > > I am having a great time using Tomcat on SuSE 9.1 with > SSL and all is working fine. > > I would like users of my web applications to be able > to upload image files to directories that Tomcat is > serving files out of. This must happen THROUGH the > web application. > > Therefore I have two questions: > > 1. How would I get a file off a remote users hard > drive (which they specify by typing the file name and > location into a text box in a form) to move to my > server and be renamed (using my own file naming > convention)? > > 2. How do you open a Browse File dialog box in a web > browser (I would guess this would be easily done using > Java Script. may not be an appropriate question here, > so only answer if you happen to have the answer on > hand) If possible, pointing me to a location on the > web where this is done and the script is readily > apparent, would be a fine answer. > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
