Upload and Resize image problem HELP!!!
ChengGong
gongcheng_g at hotmail.com
Fri Mar 24 08:08:07 EST 2006
I use following Python Script to upload file and image's but I can not
specify a folder to store image.
can any one help me? And I want to resize all the pictures, What shall
I do?
<dtml-call "REQUEST.set('file_type', file.headers['Content-Type'] )">
<dtml-let destination=context.restrictedTraverse('/cheng/test/image')>
<dtml-if "file_type.find('image')!=-1">
<dtml-call "destination.manage_addImage(REQUEST['id'], file,
REQUEST['title'])">
<dtml-else>
<dtml-call "destination.manage_addFile(REQUEST['id'], file,
REQUEST['title'])">
</dtml-if>
</dtml-let>
Finished
thanks
Cheng
More information about the Python-list
mailing list