• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to upload and store file

 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to upload and store the file on the server.

I've written the code for uploading the file.

Then I've created a variable for a file path which contains a file available on my desktop and can also read the contents of this file.
But I want to store this file on the server and not the local machine which is being used for testing purpose.
Can it be saved in the local properties file ?
it's size will be 1 mb max.

Thanks a lot.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot remotely read the contents of the file. The file must be sent to the server as a multi-part request.

See the JspFaq for more information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!