Hi
I have made this upload action (directly copied from cookbook):
MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper)
ServletActionContext.getRequest();
Enumeration e = multiWrapper.getFileNames();
while (e.hasMoreElements()) {
// get the value of this input tag
inputValue = (String) e.nextElement();
// get the content type
String contentType = multiWrapper.getContentType(inputValue);
// get the name of the file from the input tag
String fileName = multiWrapper.getFilesystemName(inputValue);
File file = multiWrapper.getFile(inputValue);
if (file == null) {
System.out.println("Error uploading: " +
multiWrapper.getFilesystemName(inputValue));
} else {
System.out.println("Upload OK " + file.getAbsolutePath());
}
}
it works fine with a small word document but any zip/exe/dll..... file
the action is not even called i am jus directly reloading the page but
the page is blanc........
i have these properties
webwork.multipart.saveDir=/tmp
webwork.multipart.maxSize=81920
webwork.i18n.encoding=ISO8859_1
how can i support any file ? and file size ?
Regards David
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork