SHARE
TWEET

Untitled

a guest Jun 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Create a factory for disk-based file items
  2. FileItemFactory factory = new DiskFileItemFactory();
  3.  
  4. // Create a new file upload handler
  5. ServletFileUpload upload = new ServletFileUpload(factory);
  6.  
  7. // Parse the request
  8. List /* FileItem */ items = upload.parseRequest(request);
RAW Paste Data
Top