troubleshooting Question

MultipartParse upload image

Avatar of Sh_Rashed
Sh_Rashed asked on
JavaJSP
8 Comments1 Solution540 ViewsLast Modified:
Hey,

i got the code from this link

 https://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_20878588.html?sfQueryTermInfo=1+imag+jsp+upload

and i tried to run it on my machine . i have MultipartParser installed in my project correctly. but when i try to use the above method to use MultipartParser package i got this error:
cannot find symbol
---------------------------------------
 if (fileName != null) {

            filePart.writeTo(dir);
            files.put(name, new UploadedFile(    //files is a variable of the class MultipartRequest
                        dir.toString(), fileName, filePart.getContentType()));
          }
          else {

            files.put(name, new UploadedFile(null, null, null));
          }
-----------------------------------------

i don't know where the hill this constructor UploadedFile defined ? is it in orielly packge?

help please
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros