Skip to content
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

Include MIME type in "Invalid file type" message #22

Closed
celiao opened this issue Sep 6, 2014 · 3 comments
Closed

Include MIME type in "Invalid file type" message #22

celiao opened this issue Sep 6, 2014 · 3 comments

Comments

@celiao
Copy link
Contributor

celiao commented Sep 6, 2014

Would you mind adding the MIME type to the Invalid file type message? It would be very useful to know at that point.

In views.py, include content_type in the message:

data = json.dumps({'error': 'Invalid file type (%s).' % content_type})
@bradleyg
Copy link
Owner

bradleyg commented Sep 6, 2014

A pull request? ;)

@celiao
Copy link
Contributor Author

celiao commented Sep 6, 2014

Sure!

On Saturday, September 6, 2014, Bradley Griffiths notifications@github.com
wrote:

A pull request? ;)


Reply to this email directly or view it on GitHub
#22 (comment)
.

@bradleyg
Copy link
Owner

bradleyg commented Sep 7, 2014

Fixed. 1125d1b

@bradleyg bradleyg closed this as completed Sep 7, 2014
bport pushed a commit to bport/django-s3direct that referenced this issue Aug 21, 2018
…-not-displayed-properly-on-415

Add handling of HTTP 415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants