N
N
nano_e_t_42016-07-03 13:02:10
Flask
nano_e_t_4, 2016-07-03 13:02:10

How good is it to use accept?

Hello everyone
You need to check the extension of the file that is sent to the server. I'm using a function on the web server that checks for an extension, but was advised to use the accept attribute. How reliable is it?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bkosun, 2016-07-03
@bkosun

Accept can also be changed. Check the MIME type on the server side.
php.net/manual/en/function.finfo-file.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question