File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60804
    
  65

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: 60804
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FTPing files
 
Similar Threads
tomcat service not able to connect with the database
Sci-Fi Goodness
Jasper Exception
WA #1.....word association
Bluetooth Apps using Nokia 6600