[Zope] HELP!!! Image uploading and moving!!!

Peter Bengtsson mail@peterbe.com
Fri, 29 Jun 2001 15:40:25 +0200


> I try this:
> <!--#call "manage_addImage('Otherdir/'+randomID,REQUEST['file1'],'')"-->

Try this:

<dtml-call "manage_addImage('Otherdir_%s'%randomID,REQUEST['file1'])">

or (if there is a container object called "Otherdir")
<dtml-call "Otherdir.manage_addImage(randomID,REQUEST['file1'])">
or (the same)
<dtml-call
"_.getitem('Otherdir').manage_addImage(randomID,REQUEST['file1'])">

The first argument of manage_addImage is id which is a string and this
musn't contain / slashes.
Try to use the management interface and add an image using the Id:
"Otherdir/239402340923"

Peter

> And I get back:
> Error Type: Bad Request
> Error Value: The id "Otherdir/723110903" contains characters illegal in
> URLs.
>
> How must I write the URL? Or what is the problem? It is very important for
> me, and I don't find the solution.
>
> Thanks
> --
> Amon Tamas
> sajt@amon.hu
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )