You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then, in /org/kohsuke/stapler/RequestImpl.java#parseMultipartFormData() method, multi files will have the some feildname, and last pared file will cover the prior parsed file:
privatevoidparseMultipartFormData() throwsServletException {
if(parsedFormData!=null) return;
// use map to store fileItem, and use feildname as key.parsedFormData = newHashMap<String,FileItem>();
parsedFormDataFormFields = newHashMap<String, String>();
ServletFileUploadupload = newServletFileUpload(newDiskFileItemFactory());
try {
for( FileItemfi : (List<FileItem>)upload.parseRequest(this) ) {
parsedFormData.put(fi.getFieldName(),fi);
if (fi.isFormField()) {
parsedFormDataFormFields.put(fi.getFieldName(),fi.getString());
}
}
} catch (FileUploadExceptione) {
thrownewServletException(e);
}
}
I am not sure where should I fix this problem, front-end or back-end? Anyone have some suggests?
The text was updated successfully, but these errors were encountered:
when upload multi-files in form-request, like:
then, in
/org/kohsuke/stapler/RequestImpl.java#parseMultipartFormData()
method, multi files will have the some feildname, and last pared file will cover the prior parsed file:I am not sure where should I fix this problem, front-end or back-end? Anyone have some suggests?
The text was updated successfully, but these errors were encountered: