Which version of web2py were you using prior to the upgrade?

On Thursday, November 13, 2014 4:04:19 AM UTC-5, Louis Amon wrote:
>
> Hi,
>
> My website has been using web2py for a few months now, and we handle 
> pictures using Amazon S3 and Cloudfront for storage and distribution.
>
> The corresponding code in web2py looks like this :
>
> Field('picture_1',
>       type='upload',
>       requires=IS_EMPTY_OR(IS_IMAGE(extensions=('jpeg', 'png'))),
>       uploadfolder='offer/picture_1',
>       uploadfs=settings.amazon_fs,
>       autodelete=True,
>       represent=lambda value, row: cloud_download(value) if value is not 
> None else None,
>       )
>
>
> When a picture was uploaded through a form, it was uploaded to our Amazon 
> bucket at a path similar to this : 
> {bucket_name}/offer/picture_1/offer.picture_1.{timestamp_hash}.{filename_hash}
>
> I recently updated to 2.9.11-stable+timestamp.2014.09.15.23.35.11 but now 
> it seems that the uploadfolder does not get prefixed to the path.
> i.e. : my uploaded pictures now go to : 
> {bucket_name}/offer.picture_1.{timestamp_hash}.{filename_hash}
>
>
> Was there something in the 2.9.11 patch that modified the behaviour of 
> uploads through a filesystem ?
>
> Is there a quick fix for mend these broken paths ?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to