Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading Files with Java Servlet Technology

 
Valleyman Vodoo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

How do i upload files using a form and Servlet securely.Currently the image files am uploading are creating a temp file in jboss and this can be a security challenge.

Regards,
 
Stefan Evans
Bartender
Posts: 1784
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you are already successfully uploading the file.
You have asked a very general question, and there are a huge number of possible answers depending on how you are currently doing it, and what sort of things you are worried about.


I presume you are using the Apache Commons File Uploads component to upload files right now?
How do you see that as a security challenge?
What are you trying to protect against?

I don't think the java file upload processes can provide much more than you already have.
I think the easiest solution might be to lock down access to the server, and put the uploaded files in a 'quarantine' area.
How large are the files you are dealing with?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic