Answer the question
In order to leave comments, you need to log in
Can images be stored on the server without an extension?
Hello colleagues!
I was implementing a profile avatar and thought
Is it possible to upload pictures without an extension
That is, all jpg, png and gif files are one size fits all, for convenience
How bad is that? Or can it be done without any consequences?
Answer the question
In order to leave comments, you need to log in
It's possible, but bad.
First, what is convenience?
Secondly, you must somehow work with these files, for example, cut off the avatar, for this you need to know the file type. Without the extension, you'll be a little tired of figuring out what kind of file it is, and browsers still can't determine what you are slipping into them.
Thirdly, it's not Christian, to produce a mess on your own server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question