[Zope] verifying a file upload
marc lindahl
marc@bowery.com
Wed, 05 Dec 2001 00:08:12 -0500
content_type would be better.
> From: <iap@y2fun.com>
> Date: Wed, 5 Dec 2001 12:56:16 +0800
> To: <zope@zope.org>, "Steven Turoff" <steveturoff@home.com>
> Subject: Re: [Zope] verifying a file upload
>
> how about check the filename?
> <dtml-if "REQUEST['file'].filename[-3:]=='gif'">
> <dtml-elif "REQUEST['file'].filename[-3:]=='jpg'">
> </dtml-if>
> ----- Original Message -----
> From: "Steven Turoff" <steveturoff@home.com>
> To: <zope@zope.org>
> Sent: Wednesday, December 05, 2001 11:57 AM
> Subject: [Zope] verifying a file upload
>
>
>> Greetings,
>>
>> I have a form which has a file upload field. If the user uploads an image,
>> I want to create an image object. How can I check to see if the user
>> uploaded a gif or jpg?
>>
>> Thanks,
>>
>> Steve
>>
>>
>> _______________________________________________
>> 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 )
>>
>
>
> _______________________________________________
> 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 )