I expanded ModelAdmin with a custom "Upload file" field, which is a link to a URL in my Django project, for example:
http:
There I want to serve a file that is stored in an S3 bucket. Files in the bucket are not publicly accessible, and the user may not have direct access to it. Now I want
- avoid downloading the file to the serverβs memory (these are files with several gb).
- avoid temporary files on the server
An ideal solution would be to allow django to act as a proxy server that passes S3 chunks directly to the user. I am using boto but have not found a way to stream pieces. Any ideas?
Thanks.
source share