[pylons-discuss] Re: Serving an S3 file

2020-10-19 Thread Jonathan Vanasco
> What is 'wsgi.file_wrapper' anyway? It's a WSGI hook defined in PEP 333 and (https://www.python.org/dev/peps/pep-/#optional-platform-specific-file-handling) It basically lets your application defer to an iterator defined in middleware file responses. In the Pyramid code, you'll see

[pylons-discuss] Re: Serving an S3 file

2020-10-17 Thread Mike Orr
On Sat, Oct 17, 2020 at 12:06 AM Mike Orr wrote: > > I'm migrating user-uploaded files from a local filesystem to MinIO (an > S3-compatible file server). I can't use FileResponse because I get > back a filehandle or a bytes, and I'd have to write it to a temporary > file to use FileResponse.I'm al