>
>     thumbName='uploads.thumb.%s.jpg' % (uuid.uuid4())
>     im.save(request.folder + 'uploads/' + thumbName,'jpeg')
>

The above is not quite the naming scheme expected by response.download. 
Instead of trying to make the name yourself, it might be easier to use the 
field's .store() method to handle it the naming and saving:

thisImage.update_record(thumb=db.Images.thumb.store(im, 
filename='thumbnail.jpg'))

See http://web2py.com/books/default/chapter/29/06#More-on-uploads.

Anthony

-- 



Reply via email to