[Zope] file-upload problem

Jens Vagelpohl jens@zope.com
Wed, 28 Nov 2001 07:48:04 -0500


demont,

you're using a dtml-tag inside another dtml-tag. that won't work. try it=20=

like this:

<dtml-call "images.manage_addFile(id=3Dmovie_id, file=3Dmovie_file)">

jens



On Wednesday, November 28, 2001, at 04:42 , Demont Maarten wrote:

> Hi, I=92m uploading a file from a form.
>
> =A0
>
> However, I want the id to be something I filled in the form, namely=20
> movie_id.=A0But if I do:
>
> =A0
>
> <dtml-call "images.manage_addFile(id=3D'<dtml-var movie_id>',=20
> file=3D'<dtml-call movie_file>')">
>
> =A0
>
> =A0
>
> andtry to upload it, I get following error message: The id "" contains=20=

> characters illegal in URLs.
>
> =A0
>
> If I fill in any name in the id=3D=92=85=92, it works as a charm=85
>
> =A0
>
> =A0
>
> How do I use a variable in the id field?
>
> =A0
>
> =A0
>
> Maarten Demont
>
> maarten.demont@cronos.be
>