Re: file upload monitoring
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, 2007/6/15, kRAkEn/gORe <[email protected]>: > It seems that you can't put other form fields in the form while you > are uploading. > It returns status.itemsRead = the number of form elements... I need to have both > alphanumeric data and file upload with a single form submit. how can i do that ? sorry for the late reply, there were also some problems with the mailing list over the last few days, but they should be fixed now. Actually, mixing file input fields with other form elements should work without problems. What exactly isn't working for you? Do you have a enctype="multipart/form-data" attribute in your form tag? hannes > thanx in advance > > On 6/5/07, Hannes Wallnoefer <[email protected]> wrote: > > I've added a hook for file upload monitoring to the helma servlet: If > > there is a upload_id parameter in the query string, the upload status > > is tracked in the user's session. You can get it via > > session.getUploadStatus(uploadId). There's a demo page here: > > > > http://dev.helma.org/wiki/Upload+Demo/ > > > > I think it doesn't work with Safari currently, maybe somebody can look > > into this. > > > > However, the really big news is that uploads are no longer passed in > > memory. helma.util.MimePart can now wrap a DiskFileItem from > > commons-fileupload, and you can read its content from an InputStream > > instead of a byte array. I'm in the process of documenting all this at > > > > http://dev.helma.org/wiki/HTTP+Parameter+and+File+Upload+Enhancements+in+Helma+1.6/ > > > > hannes > > > > 2007/5/31, kRAkEn/gORe <[email protected]>: > > > already done > > > > > > On 5/31/07, Hannes Wallnoefer <[email protected]> wrote: > > > > 2007/5/31, kRAkEn/gORe <[email protected]>: > > > > > cool, > > > > > since i'm basically quite new to helma, where should i look for > > > > > attaching this listener to the common helma upload internal class, > > > > > and maybe let it trigger a session.onFileUploadProgress() found in the > > > > > application scripts ? > > > > > > > > It's rather hard to do this without modifying Helma, so I implemented > > > > it. It'll be in CVS later today. > > > > > > > > hannes > > > > _______________________________________________ > > > > Helma-user mailing list > > > > [email protected] > > > > http://helma.org/mailman/listinfo/helma-user > > > > > > > _______________________________________________ > > > Helma-user mailing list > > > [email protected] > > > http://helma.org/mailman/listinfo/helma-user > > > > > _______________________________________________ > > Helma-user mailing list > > [email protected] > > http://helma.org/mailman/listinfo/helma-user > > > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user >