Javascript-how does "online attachments" in Baidu editor control user permissions?

Source: Internet
Author: User
When using the Baidu editor, you can find that there is an "online Attachment" when adding attachments. you can see all the attachments uploaded previously. However, I only want users to see their uploaded attachments, rather than those uploaded by all users. how can this problem be solved? In addition, it seems like "online management" of "multi-image upload "... when using the Baidu editor, you can find that there is an "online Attachment" when adding attachments. you can see all the attachments uploaded previously.

However, I only want users to see their uploaded attachments, rather than those uploaded by all users. how can this problem be solved?

In addition, it seems that this is also the case of "online management" for "multi-image upload.

Reply content:

When using the Baidu editor, you can find that there is an "online Attachment" when adding attachments. you can see all the attachments uploaded previously.

However, I only want users to see their uploaded attachments, rather than those uploaded by all users. how can this problem be solved?

In addition, it seems that this is also the case of "online management" for "multi-image upload.

Http://fex.baidu.com/ueditor/#server-php
Http://fex.baidu.com/ueditor/#dev-request_specification

Judge session in controller. php
Note that no session exists during flash Upload.

Thank you for your answers.
I found the answer, and there are several lines of code in controller. php:

/* List images */case 'listimag': $ result = include ("action_list.php"); break;/* list files */case 'listfile ': $ result = include ("action_list.php"); break;

Comment them out, or comment out the code of action_list.php.

I chose the method of making as few changes as possible, and added exit () at the beginning of action_list.php ();

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.