Expand my Community achievements bar.

ServletFileUpload cannot be resolved

Avatar

Level 2

Hello,

I am trying to handle file uploads from an input form.  CQ5 already comes with Apache Commons FileUpload and I am importing it in my servlet.  However I keep getting the error that ServletFileUpload cannot be resolved.

final boolean isMultipart = ServletFileUpload.isMultipartContent(request); if( isMultipart ){ final ServletFileUpload upload = new ServletFileUpload(); ...... }

Thanks.

0 Replies