The file to be uploaded is in lrc format. php is added with & #039; lrc & #039; & amp; gt; & #039; textplain & #039;. It passes the local test and is uploaded successfully. However, when you upload the lrc file to the server (centos), the following message is displayed: Thefiletypeyouareattemptingtouploadisnot... the file to be uploaded is in the lrc format.
I added 'lrc '=> 'text/plain' to mimes. php and passed the local test. The upload was successful.
However, when you upload the lrc file to the server (centos), the following message is displayed:
The filetype you are attempting to upload is not allowed.
I have no idea where the problem is.
Thank you.
Reply content:
The file to be uploaded is in lrc format.
I added 'lrc '=> 'text/plain' to mimes. php and passed the local test. The upload was successful.
However, when you upload the lrc file to the server (centos), the following message is displayed:
The filetype you are attempting to upload is not allowed.
I have no idea where the problem is.
Thank you.
It depends on the mime type reported by the browser to PHP. Use a debugging tool to check it.