L
L
lightalex2016-06-01 20:15:10
PHP
lightalex, 2016-06-01 20:15:10

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

1 answer(s)
T
ThunderCat, 2016-06-01
@lightalex

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 question

Ask a Question

731 491 924 answers to any question