for every field you can specify the upload folder, uploadfolder=os.path.join(request.folder,'uploads'),
also "request.folder" might be what you re looking for. from http://web2py.com/books/default/chapter/29/6 Field(name, 'string', length=None, default=None, required=False, requires='<default>', ondelete='CASCADE', notnull=False, unique=False, uploadfield=True, widget=None, label=None, comment=None, writable=True, readable=True, update=None, authorize=None, autodelete=False, represent=None, compute=None, uploadfolder=os.path.join(request.folder,'uploads'), uploadseparate=None) On Wed, Apr 18, 2012 at 8:32 PM, rdodev <[email protected]> wrote: > So, as per documentation, the default upload file location is: > web2py\applications\application_name\uploads however, I'd like to avoid > hard-coding this path since the app might be deployed in different environs > and relative paths don't seem to work (i.e. '../uploads/' + file_name') . > So from a controller is there a more elegant way to get the path? Thx. >

