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

bmp images get a bad file extension #464

Open
ebarra opened this issue Oct 15, 2013 · 5 comments
Open

bmp images get a bad file extension #464

ebarra opened this issue Oct 15, 2013 · 5 comments

Comments

@ebarra
Copy link
Member

ebarra commented Oct 15, 2013

When I upload a bmp image the file is well uploaded (in ViSH) but the resulting URL when showing the picture is http://localhost:3000/pictures/36.x-ms-bmp that does not work. The one that works is http://localhost:3000/pictures/36.bmp

@atd
Copy link
Contributor

atd commented Oct 15, 2013

@ebarra can you please provide me with the content type?

Document.find(36).content_type

@ebarra
Copy link
Member Author

ebarra commented Oct 15, 2013

rails c
Document.find(36).file_content_type
"image/x-ms-bmp"

@ebarra
Copy link
Member Author

ebarra commented Oct 15, 2013

file --mime-type captura.bmp
image/x-ms-bmp

@atd
Copy link
Contributor

atd commented Oct 16, 2013

Could you send me the image?

@ebarra
Copy link
Member Author

ebarra commented Oct 16, 2013

Github does not support uploading bmp. It tells me "Unfortunately we don't support that file type yet. Please use PNG, GIF, or JPG.". I send it to you by email

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