After some digging, I think I may have found the issue. See my pull request: https://github.com/web2py/web2py/pull/409. Comments welcome.
On Wednesday, March 19, 2014 9:45:13 PM UTC-4, Chris DeGroot wrote: > > I am trying to deploy my web2py app on Heroku. I have a database table > containing an upload field that I want to put on a remote filesystem using > sftp. In db.py, I have set up the file system: > > from fs import sftpfs > > file_system = sftpfs.SFTPFS('???', > > root_path='???', > > username='???', > > password='???') > > In my table I define a field: > > Field('zip_file', > > 'upload', > > required=True, > > uploadfs=file_system, > > autodelete=True) > > If I run my app on my local machine, the file is uploaded to the sftp > server as expected. When I run the app on Heroku (which will use a > postgresql database) it does not go to the remote filesystem, rather is > placed into the postgresql database on Heroku. Any ideas why this wouldn't > be working? > -- 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.