Skip to content

Static .JPG files (uppcase JPG) get corrupted #557

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

Closed
haarspalter opened this issue Sep 15, 2014 · 4 comments
Closed

Static .JPG files (uppcase JPG) get corrupted #557

haarspalter opened this issue Sep 15, 2014 · 4 comments
Labels

Comments

@haarspalter
Copy link

Serving static .JPG files with upper case file extension seems not to work on Windows 7. I created an empty project, put a a.jpg into client/assets/images and access the file directly using e.g.

http://localhost:9000/assets/images/a.jpg

This works nicely as expected.

But http://localhost:9000/assets/images/a.JPG will not show the proper image in the browser, and the date seems to be corrupted somehow. It does not matter, if the file is named a.jpg or a.JPG. In both cases, it seems not to work correctly.

@kingcody
Copy link
Member

How are you serving your project?

  • grunt serve ?
  • grunt serve:dist ?
  • grunt build && cd dist && npm start ?

@haarspalter
Copy link
Author

grunt serve

@haarspalter
Copy link
Author

using grunt serve:dist seems not to have this problem

@JaKXz
Copy link
Collaborator

JaKXz commented Sep 25, 2014

@haarspalter sorry for the late response: can you still use src="/assets/images/a.JPG" in your image tags?

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

No branches or pull requests

4 participants