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
Post a Comment