The action context cleaner is the first filter in my web.xml. Yes, I get the temp file name. I had code to read in the data from the file, but I commented it out for now, all I want to do is be able to have the file appear on my server.
I check whether the uploaded file exists (also it's name and size) in my getters and setters. I also keep getting the name of the button as the text in the temp file. I looked at the html info of my page after submitting the form, and the "links" tab has the button name, the address of my action, and the type is "form submission". I guess it simply writes out the name of the link (the button name) to the temp file. I'll rework the example from scratch, and see if I come across anything apparently odd. I keep thinking that the issue might be in my JSP: <s:form action="SMIGImport" method="POST" enctype="multipart/form-data"> <s:file name="upload" label="File" /> <s:submit name="impButt" value="Importooo" method="importSMIGButtonPressed" /> </s:form> that enctype maybe needs further stuff to support it, I don't know. > I would suggest isolating the smallest example with which you cannot > upload a file: I have yet to have any issues with it after adding the > cleanup filter. > > Did you put the filter in the correct place in the web.xml? It needs to be > executed before the S2 filter. > > My sample code is doing an Ajax submit (IIRC; I had to put that project on > hold) so there's another layer of complexity there that isn't particularly > useful for sample code. > >> I get the correct filename in the filename getter, but I don't get that >> same filename in the file getter (it's something totally different). > > You'll get the name of the temporary file, right? > > Do you do anything in the action with the uploaded file, like copy it? > When are you checking the temporary file to see what's in it? What do you > get for file information inside the action? > > 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]