HELP!!! Image uploading and moving!!!
Hello everybody! I try to find in every documentation + HOWTO + mailing list, but I don't find the solution: I try this: <!--#call "manage_addImage('Otherdir/'+randomID,REQUEST['file1'],'')"--> 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
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 )
Tamas Amon writes:
I try to find in every documentation + HOWTO + mailing list, but I don't find the solution:
I try this: <!--#call "manage_addImage('Otherdir/'+randomID,REQUEST['file1'],'')"-->
And I get back: Error Type: Bad Request Error Value: The id "Otherdir/723110903" contains characters illegal in URLs. If this is not only an example, then you have found a Zope bug. This URL is valid!
URLs must not contain non-printable characters (including blank spaces), non-ASCII characters and some reserved special characters (such as ';', '?', ...). Dieter
participants (3)
-
Dieter Maurer -
Peter Bengtsson -
Tamas Amon