The local environment of lrc files cannot be uploaded online in the CI framework.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.