Skip to content
This repository was archived by the owner on May 10, 2025. It is now read-only.
This repository was archived by the owner on May 10, 2025. It is now read-only.

File extensions should be canonicalized (made lowercase?). #31

Description

@dmitshur

I had an image on my desktop that I acquired via a 3rd party software (Photos.app). I did not control its filename or extension, and it happened to be IMG_2878.PNG.

I uploaded the image file to Instant Share and it gave me a URL like this:

http://instantshare.win/1vr26ftdzmi5q.PNG

Note that the filename is replaced by a random ID that Instant Share choses, but the file extension is kept as is.

I didn't want to the URL to look ugly when sharing, so I modified it to be nicer:

http://instantshare.win/1vr26ftdzmi5q.png

And shared that. But it's 404.

I think a good solution is to canonicalize the file extensions in the generated filenames. Most likely by making it all lower case, always.

Any issues with that solution?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions