Hi, when i parse the request object after using Flash's FileReference object, it appears as though flash has some anomoly in the header it sends. FileReference is compiled so i can't see what the actual problem is, but when i use php or asp it works fine...in fact when i use the request object to get the parameter (request.getParameter("filedata")); there's no such param available.
i terribly sorry if this is vague, but it's all i have.... thanks so much b ----- Original Message ---- From: Martin Cooper <[EMAIL PROTECTED]> To: Jakarta Commons Users List <commons-user@jakarta.apache.org> Sent: Wednesday, January 24, 2007 9:00:13 PM Subject: Re: adding patch to jar On 1/24/07, badi malik <[EMAIL PROTECTED]> wrote: > > Hi Martin, > thanks for getting back to me...here's the problem i'm running into... > > i'm using flash to select and upload a file as opposed to using a form in > an html page. the problem stems from the way flash is handling the > content...so i modified the FileUploadBase class at line 336 to this... You must have an old version of FileUpload, because your line 336 is now line 858, if I'm reading it properly. In any case, that doesn't help me understand why you are making this change, so I can't tell if something similar (certainly not that particular change) would be appropriate for FileUpload. What is it that Flash is doing / not doing that is causing the problem? If you just want to build your own, I'd suggest grabbing the code from SVN and building it with Maven. Trying to build one class and insert it into the jar is more likely to cause problems than not. However, even if you go this route, I'd still like to understand why *exactly* FileUpload doesn't work for you "out of the box". -- Martin Cooper //PATCH:Map headers = parseHeaders(multi.readHeaders()); > Map headers = null; > try { > headers = parseHeaders(multi.readHeaders()); > }catch(MultipartStream.MalformedStreamException e) { > return items; > } > > now i want to add it to the jar but have no idea how to do this... > > thanks > > > > ----- Original Message ---- > From: Martin Cooper <[EMAIL PROTECTED]> > To: Jakarta Commons Users List <commons-user@jakarta.apache.org> > Sent: Wednesday, January 24, 2007 1:17:15 PM > Subject: Re: adding patch to jar > > Please do not cross-post. I have removed the dev list from this thread. > > On 1/24/07, badi malik <[EMAIL PROTECTED]> wrote: > > > > Hello all, > > I'm using flash to upload a file using fileUpload classes. because of > > this i've had to patch the FileUploadBase source > > > Why, and what is the change? Would it make sense to incorporate it into > Commons FileUpload? > > and need to recompile it and add it to the jar > file(commons-fileupload-1.1.1)...do > > i need to rebuild the whole thing using ant, or can i somehow just add > the > > one file? I assumed that i needed to rebuild everything so i downloaded > ant > > and trie that but keep getting instantiation errors. can anyone tell me > > which version of ant i need to use to accomplish this? > > > FileUpload, like almost all Commons components, is built using Maven, not > Ant. What you need to do to incorporate your change depends on the nature > of > your change. > > -- > Martin Cooper > > > thanks in advance > > > > b > > > > > > > > > >