[Tramline-dev] a Plone file-Field with tramline and JUpload ?
Dirk Wallmeier
wallmeier at imperia.info
Mon Jan 30 12:32:42 CET 2006
Hi,
we are also trying to build a file repository product for plone. We want
to integrate tramline and JUpload with an AT file field.
We managed to get it working up- und downloading files when I was stuck
with the login-form problem and came to the tramline-dev list.
Here I found out that others are working on the same idea as well. This
is our approach:
For the field widget we built a JUploadWidget. We used JUploadThread V2
to be able to handle large files and modified it to redirect to the
submit URL of the AT edit form, where the applet is embedded. On
uploads, the applet calls a python script, that passes the file names in
the tramline repo into the LinesField, which uses our widget.
This all seem to work, but it is not very much tested.
I think it would make sense to tell the tramline filter explicitely to
be reponsible for an upload by setting a special header line. This
prevents tramline from interfering with other products using form upload
and only interfer with our special file field. I prefer this approach
over the general file field patch suggested by Matt Hamilton in
PloneTramline.
I haven't tried out this yet, but I will try it now together with the
patch for the login problem.
I think we should share experiences try to supply a
AT-Tramline-JUpload-FileField for general use?
--
mfg / kind regards
D. Wallmeier
More information about the Tramline-dev
mailing list