You're right about the button, that's what gets put in the file. I'll check on how to add the action context cleanup filter. Hopefully that will clear up things.
Thanks, Session > I'd add the action context cleanup filter; it may be cargo-cult > programming at this point but in the past it seemed necessary for file > uploads to work. The discussions regarding it are in the archives. > > Other than that, I'm not sure what else to tell you w/o seeing the code. > Is the button label "Import"? That makes me suspicious if that's also > what's being copied into the temp file (if it is "Import" you can do a > quick sanity check by making it something else like "Fluffernutter" and > seeing if that ends up being the file's contents). > > d. > > --- Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > >> I never set a filter (not sure how to either), I just copied what the >> showcase example had. >> >> Here's my JSP: <%@ taglib prefix="s" uri="/struts-tags"%> <html> <head> >> <title>SMIG Import</title> <meta http-equiv="Content-Type" >> content="text/html; charset=iso-8859-1"> </head> <body> <s:form >> action="SMIGImport" method="POST" enctype="multipart/form-data"> <s:file >> name="upload" label="File" /> <s:submit key="importSMIGButton" >> method="importSMIGButtonPressed" /> </s:form> <s:actionerror/> >> <s:actionmessage/> </body> </html> >> >> My action has a series of getters/setters for the following: private >> String fileName; private String contentType; private File upload; >> >> My action in struts.xml is configured as follows: <action >> name="SMIGImport" >> > class="edu.cmu.sei.smart.zen.server.smigimportexport.SMIGImport"> >> >> > <result>/pages/smigimportexport/SMIGImport.jsp</result> >> <result >> > name="input">/pages/smigimportexport/SMIGImport.jsp</result> >> </action> >> >> I do get a tmp file, but it only has the word "Import" in it, and not >> the content of the file I uploaded from the browser. >> >> Anything I may be missing? >> >> Thanks, Session >> >> >>> --- Session A Mwamufiya wrote: >>>> Do people need more information in order to >> answer this thread? Please >>>> let me know. I've been stuck for 2 days now, >> trying to upload a file on >>>> my server. >>> >>> I've had no issues uploading files; it drops it in >> the temp directory and >>> I copy it to where I really want it. >>> >>> Are you using the context cleanup filter? >>> >>> d. >>> >>> >>> >> > --------------------------------------------------------------------- >> To >>> unsubscribe, e-mail: >> [EMAIL PROTECTED] For additional >>> commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> > --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional >> commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]