© Brent Watson 2015
Brent WatsonStripes by Example10.1007/978-1-4842-0980-6_14

14. File Uploads

Brent Watson 
(1)
316 Marine Ave, Brooklyn, USA
 
 
Brent Watson
As with Chapter 12, I suggest you skip this chapter and come back to it only if you find yourself needing file upload capabilities in your application.
Note
Before proceeding, either the Apache Commons FileUpload jar ( http://commons.apache.org/fileupload/ ) or the COS jar ( www.servlets.com/cos/ ) are needed to perform a file upload in Stripes. Add either one of these to your application as a jar file. Stripes is smart enough to use whichever one is available.
In addition, you need to create a local directory to which you can upload your files (e.g., c:\myfileuploads ...

Get Stripes by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.