-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve documents with the correct mime type when using a non-local storage backend #1416
Comments
Several layers of confusion here, sorry! "Serving as a stream" means something different to us - for us, it means the response is generated in stages, rather than being constructed in memory up front. You're talking about the mime type We made several changes to document serving in 1.0b2, including serving them with the correct mime type - however, we've now discovered that these changes are incompatible with remote storage backends such as |
Oh I see :) That makes sense, thank you. |
Will be addressed by #1420 |
Github issues wagtail#3629 and wagtail#1416
Fixes for documents implementation Github issues wagtail#3629 and wagtail#1416
Fixes for documents implementation Github issues wagtail#3629 and wagtail#1416
Fixes for documents implementation Github issues wagtail#3629 and wagtail#1416
Completed in #5296 (which changed the default behaviour of remote storage backends to redirect to the remote URL rather than proxying through Django, meaning that headers are whatever the storage service sends). |
In my models, I have a
wagtaildocs.Document
field:I would like to serve an svg as an
image/svg+xml
, not as a stream, when accessing it via its URL. So far, I got the following advice (#1415 (comment)):Unfortunately, this did not seem to prevent the streaming. Do you know how I could save this?
The text was updated successfully, but these errors were encountered: