소프트웨어 개발/Java - Basic

멀티파트 전송법

늘근이 2014. 11. 3. 18:39

MultipartRequest mRequest = null;
   String saveFullDir = getServletContext().getRealPath("images");
   int maxFileSize = 5 * 1024 * 1024;
   String encoding ="utf-8";
   
   mRequest = new MultipartRequest(request, saveFullDir, maxFileSize, encoding, new DefaultFileRenamePolicy());