Hello, I am using fs.s3fs to upload image files directly to s3. It works great, but users can't visit the image link and view directly in their browser, because the content-type is defaulting to application/octet-stream.
>From my recent searching, I found that fs.s3fs does not support setting the content-type of a file as of June 2014 https://groups.google.com/forum/#!topic/pyfilesystem-discussion/LUAVHACd88M What would be the best way to have the content-type set on or shortly after a successful upload to s3? Use a different library to set uploadfs? - I know you can set meta-data with boto, but it says here that uploadfs doesn't work with boto https://groups.google.com/forum/#!msg/web2py-developers/yeCG3OW93nM/pwxQooBj3ecJ Trigger something to run whenever a record containing an upload field is added to the db that checks my s3 bucket and sets the content-type right after upload? -If this is the way to go, what would be the best way to do this? Edit fs.s3fs so that it accepts meta-data? -I can't find good documentation for fs and would probably not know how to do this even if I could find some. Thank you for your time. -James. -- 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.