Delete upload file item after usage.
This commit is contained in:
parent
3c29cd2e32
commit
1682808eca
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,6 @@ public abstract class AbstractServletClient extends HttpServlet {
|
||||||
|
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
FileItem item = (FileItem) it.next();
|
FileItem item = (FileItem) it.next();
|
||||||
// TODO: set fieldname_array if multiple values for one fieldname
|
|
||||||
String name = item.getFieldName();
|
String name = item.getFieldName();
|
||||||
Object value = null;
|
Object value = null;
|
||||||
// check if this is an ordinary HTML form element or a file upload
|
// check if this is an ordinary HTML form element or a file upload
|
||||||
|
@ -192,6 +191,7 @@ public abstract class AbstractServletClient extends HttpServlet {
|
||||||
} else {
|
} else {
|
||||||
reqtrans.set(name, value);
|
reqtrans.set(name, value);
|
||||||
}
|
}
|
||||||
|
item.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception upx) {
|
} catch (Exception upx) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue