Forums Register Login

Uploading of files

+Pie Number of slices to send: Send
Dear Friends,
I have an application wherein the client will be sending a file to the server. Here the FileDialog box should appear which will help the client to select the file which will then be transfeered to the server for its use.
Should we use FTP?
How do I read and transfer the file?
Thanks in advance,
Regards,
Milan Doshi
+Pie Number of slices to send: Send
I would suggest that you do not use FTP ... basically, it opens your app to problems where people can accidentally delete files, rename, etc. Also, it directly ties your application to the file system. Yes, you can certainly upload files through a web form interface. Just use the <input type="file"...>. Make the action of a form be a servlet. A basic servlet that handles this (what is known as multi-part form data) can be found on Jason Hunter's site at http://www.servlets.com/jservlet2/examples/ch04/index.html#ex04_21
+Pie Number of slices to send: Send
There is a free java bean called jspSmartUpload which you can get from www.jspsmart.com which will help you do this.
Jason
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 922 times.
Similar Threads
Security Policy
Write a file at client's machine.
copying file from client system to and storing in server
java.rmi.server.codebase & Policy file Question
Policy files
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:25:43.