aspose file tools*
The moose likes JSP and the fly likes FTPing files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "FTPing files" Watch "FTPing files" New topic
Author

FTPing files

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Hi guys,
How do I go about writing a JSP page where I can upload files from my local hard drive using <input type="file"> html tag to the server?
thanks,
Alex


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61646
    
  67

This topic has been discussed many time across the Servlets, JSP and HTML forums. Have you looked through these topics? What aspect of it has you stumped?
Hint: search for terms like: 'upload' and 'multipart request'.
bear
[ November 04, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61646
    
  67

Btw, uploading files using the file control has nothing at all to do with FTP, so your topic subject is rather misleading. You might want to consider changing it to something more akin to what you are asking.
bear
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
thanks, I searched for it...should've done it before.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: FTPing files