[Helma-user] file upload monitoring
Hannes Wallnoefer
hannes at helma.at
Tue Jun 5 11:03:30 CEST 2007
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 <kunitoki at gmail.com>:
> already done
>
> On 5/31/07, Hannes Wallnoefer <hannes at helma.at> wrote:
> > 2007/5/31, kRAkEn/gORe <kunitoki at gmail.com>:
> > > 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
> > Helma-user at helma.org
> > http://helma.org/mailman/listinfo/helma-user
> >
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
More information about the Helma-user
mailing list