I'm using the exact same method to test uploading images to S3. But I'm receiving the following error:
*Ticket ID* 127.0.0.1.2016-02-16.14-39-32.325d6b5d-68c7-405f-b63d-4e6971c2623e *<class 'boto.exception.S3ResponseError'> S3ResponseError: 403 Forbidden* Any idea where I'm going wrong? I couldn't add the region name in this and I guess one of the reasons is that the bucket is not in the default region. Thanks On Thursday, May 31, 2012 at 12:56:47 PM UTC-5, Massimo Di Pierro wrote: > > Here is an example: > > easy_install pyfilesystem > > >>> import fs.s3fs > >>> myfs = fs.s3fs.S3FS(bucket, prefix, aws_access_ke, aws_secret_key) > >>> db.define_table('test',Field('file','upload',uploadfs = myfs)) > > Now all your uploaded files will go on S3. > Here is a list of supported filesystems: > http://packages.python.org/fs/filesystems.html > > WARNINGS: > - needs testing. I have tested with OSFS and I am confident it works > - I do not think with will work on GAE, should be tested > - uploadfolder and uploadseparate are ignored when uploadfs is specified > (this should be changed, any takers?) > > Should be possible to wrap myfs into an encryption layer but I have not > done it yet. > > We may want a more comprehensive strategy and allow every web2py file > (including apps, sessions, tickets, etc) to go into a pyfilesystem. Is this > necessary? On linux one can mount filesystems in a folder anyway. Is this > more trouble than it is worth? > > Massimo > > > > > > -- 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.