1. If you specify uploadfolder, it must be absolute path - something like
os.path.join(request.folder, 'path_relative_to_your_app')
2. To store file I use like this:
dst = open('your_file_absolute_name', 'wb')
shutil.copyfileobj(form.vars.file, dst)
dst.close()
it works
On Friday, February 12, 2016 at 1:51:33 AM UTC+3, Alfonso Serra wrote:
>
> Ok the first mistake ive made
> file.seek(0) returns None so file.seek(0).read() doesnt make sense.
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.