Filtering Images by Security Prefix
New security features for uploading and sharing images on CuteEditor have been
added to ease security concerns. Different user groups can have their own image
uploading/sharing folders by specifying the different image gallery paths.
You can aslo apply security prefix to further filter out image
files so users can only view images uploaded by themselves. Users would
feel like they have their own image pools although the user group's files are
located in the same physical folder. You can disable this Security Prefix
feature for admins and power users so they can view all the files.
Why use Security Prefixes?
- Easy File Management File owners are clearly identified by file name prefix.
- Individual Image Pools Users are limited to viewing only their own uploaded images.
- Programmable at User Level Enables users to remove file viewing limitations for Admins and Power users.
How does the security prefix work?
- Uploading
If the security prefix has been set to the current user, all the image files
will be renamed and a prefix will be added the file names when uploading.
If the original file names were named:
Flower.jpg
Holiday.jpg
and the current user has been set the security prefix: "Jack_"
Then the resulting renamed files would be named in the server:
Jack_Flower.jpg
Jack_Holiday.jpg
- Viewing
If the security prefix has been set to the current user, the current user can
only view the images whose name begins with his/her security prefix.
In the screenshot1, the images whose name begins with "Jack_" will be
displayed, the other images will be hidden.
-
Users with NO prefix are not limited by prefix restriction.
For Admin/Power
Users, allow them to view all files by simply not setting security prefix.
Screenshot 1. Jack being restricted by Image Prefix
- The file list panel only shows files whose names start with "Jack_".
- Original file name was Sample_Picture01.jpg before upload. Changed to Jack_Sample_Picture01.jpg after loading
- Code sample: Editor1.SetSecurityFileNamePrefix("Jack_")
Screenshot 2. Brian being Admin requires no prefix restriction.
-
The file list panel shows all files under Image Gallery directory despite
prefix restrictions that apply to users. (NOTE: Brian is Admin.)
-
Original file name stays unchanged after upload.
-
Users with NO prefix are not limited by prefix restriction.

