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
Our community of experts have been thoroughly vetted for their expertise and industry experience.