Actually, I just found out about the X-Sendfile header which I think might
solve this problem. It basically allows you to set the HttpResponse content
to an empty string, but the X-Sendfile header tells apache to send a file
from the filesystem, so apache handles the actual serving of the file,
On Sep 27, 3:08 am, Ben Davis wrote:
> I would like to be able to serve files that were uploaded via the admin
> site; for example, when someone clicks on the "Currently:" file link in the
> changeform. However, I also have the following requirements:
>
> 1. The file should only be accessi
I would like to be able to serve files that were uploaded via the admin
site; for example, when someone clicks on the "Currently:" file link in the
changeform. However, I also have the following requirements:
1. The file should only be accessible when authenticated via django's
auth system
3 matches
Mail list logo