Modify the Imperial cms default picture attachment upload path

Source: Internet
Author: User

The "Attachment address" setting in the Imperial CMS system settings is not in effect, regardless of whether it is set to anything or under d/file/, the following cattle tutorial describes the method of manually modifying the attachment storage address.

First: In the system settings, "attachment address" is changed to the address you want, here is /upload/ for example.

Second: Modify the/e/class/connect.php file, replace all the d/file/in the file with the upload/value, the modification position is about 2964 rows.

Three: Manually create the upload folder.

After modifying these three items, even if the attachment upload path is successfully modified.

It should be noted that if the system parameter settings-File settings-attachment directory, the selection is "column directory" will need to manually create the column directory folder , select the/d/file/p directory item also need to manually create P folder, Because the program does not automatically generate the folder when it is tested, creating it manually will cause the save to fail.

Although the path is manually modified, but the system parameter settings-file settings-Attachment storage directory This is the display or the default/d/file/p

If you want to modify the path you set for yourself, you can find the/e/admin/setenews.php file and navigate to 1020, 1022, and 1024 lines to modify it.

Modify the Imperial cms default picture attachment upload path

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.