pyramid
pyramid copied to clipboard
Documentation for POST file uploads
Hi,
There does not seem to be much documentation for file uploads. Ideally something should be added in request.POST in the API docs.
There is an example in the cookbook, but it does not tell all. Specifically, what read mode was used to open the fileobject? Logic says 'rb' is the only universal choice, but this requires thought.
The cookbook entry referred to in the OP:
http://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/static_assets/files.html#basic-file-uploads
Current link: https://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/static_assets/uploading-files.html