david / django-storages
Support for many storages (S3, MogileFS, etc) in Django.
Clone this repository (size: 192.4 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-storages
| commit 111: | 3602d345b998 |
| parent 110: | 4ba06827f5ab |
S3 Content-Type fix.
Boto overwrites the Header Content-Type setting with its own guess. Changed _save to add the Content-Type to the metadata.
The metadata is added to the Header after boto overwrites the Content-Type in the Header.
In the case of uploaded files, the file's content_type is ignored and instead mimetypes.guess_type is used instead.
This fix checks for content.content_type and if present, uses it instead of mimetypes.guess_type.
We needed this fix to properly set the Content-Type when uploading caf files without an extension.
| filename | size | last modified | ||
|---|---|---|---|---|
| docs | ||||
| examples | ||||
| storages | ||||
| .hgignore | 150 B | 5 months ago | Updated setup.py to use distribute. | |
| .hgtags | 186 B | 5 months ago | Added tag 1.1.1 for changeset 374f6d14e307 | |
| AUTHORS | 713 B | 3 months ago | Add a mongodb backend, fixes #38, thanks @wkornewald | |
| LICENSE | 1.5 KB | 20 months ago | Add an AUTHORS file, they deserve it | |
| README | 315 B | 2 years ago | Update README + LICENSE | |
| S3.py | 20.7 KB | 19 months ago | Bundle S3 lib and update S3 tests | |
| setup.py | 815 B | 5 months ago | Removing distribute. Causing issues w/PyPI install. |
