Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading non html content  RSS feed

 
Rachit Kumar Saxena
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we make a servlet giving the user the power to upload non html content like jar file,pdf,video,pictures etc.
 
Tim Moores
Saloon Keeper
Posts: 3829
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache Commons FileUpload library can handle the server side of an HTML file upload.
 
Rachit Kumar Saxena
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not talking about html content but non html whose mime types are application/jar etc.
 
Tim Moores
Saloon Keeper
Posts: 3829
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for being imprecise: I meant HTTP file upload, not HTML file upload. The upload does not care the least what kind of data is transferred through it.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!