OT Multi-image upload

Source: Internet
Author: User

1. Add method: Open the application/admin/common/function.php file, locate function get_attribute_type ($type = "), and add a ' uploadpics ' under line 86th > Array (' Bulk upload image ', ' varchar (255) not NULL ');
After adding this item, you can choose when you add a field in the background, but you need to modify something to implement the function.

Modify your templates (such as adding articles, modifying article templates), such as application/admin/view/think/edit.html. Add the following code under <case value= "Picture" >...</case>.

This is to achieve the specific image upload function.

Original URL Link: http://www.cnblogs.com/manongxiaobing/p/4727410.html

OT Multi-image upload

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.