php - Content-type Issue while uploading JSON in HTML FORM By using POST Method -


im trying upload json file html form post method , enctype="multipart/form-data" , check out format before uploading on server checking $_files[type]

after uploading, in firefox shows that:

data.json [type] => application/json.

that need. when upload file chrome shows this:

data.json [type] => application/octet-stream

but still should be:

data.json [type] => application/json.

what solution?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -