Role-Based Upload Folder and Upload Handling
Role-based upload folders can be defined for guided data handling during upload and import by the user.
The following options are available:
- Users can upload to every upload folder via the folder structure; however, uploading via Drag&Drop and the quick upload is always to a defined target folder
- Users can only upload to a defined upload folder
Restrictions
On 2: The folder structure also shows all available upload folders; however, it is still only possible to upload to a defined upload folder.
The following configuration guide is intended for administrators.
Configuration – Target Folder for Drag&Drop and Quick Upload (Option 1)
Administration rights are required to configure a target folder.
- Open the “General system administration” via the mega menu.
- Open the “User settings” category.
- Open “Role configuration”.
- Select a user role.
- Click on the “Folder” label in the module overview and open the module settings.
- The “Allow upload to folder” permission must be set under the “Feature authorizations” tab.
- Open the “Presets” tab and enter the complete path to the required upload folder in the “Upload folder for this role” field.
For example: “Data/Uploads/Role marketing”
Be sure to use the “slash” divider for Linux and Windows servers. - Save the entries.
- Users should log out of the system and log back in to ensure the change has definitely been made.
Configuration – Upload Folder Window (Option 2)
Administration rights and access to the 4ALLPORTAL back-end (custom folder and apps) are required to configure a specific upload folder.
- Add an additional condition to the upload action:
Open the “upload.xml” configuration file via the file structure in the 4ALLPORTAL back-end, path: .../custom/modules/folder/actions/.
If the upload.xml does not yet exist, this must be taken from the 4allportal-dam.app and filed under the specified path. Add the following condition to the upload.xml.
<condition> <sql> IF (parent_path = '', CONCAT(mount, '/', `name`), CONCAT(mount, '/', parent_path, '/', `name`) ) = '{getFeature("folder.import_folder")}' OR '{getFeature("folder.import_folder")}' = '' </sql> </condition>
XML- Save the Upload.xml.
- Create a feature permission for the “Folder” module:
Open the “setup.4apmsetup” configuration file via the file structure in the 4ALLPORTAL back-end, path: .../custom/modules/folder/.
If the setup.4apmsetup does not yet exist, this must be taken from the 4allportal-dam.app and filed under the specified path. Add to the setup.4apmsetup under the tag <feature> with the following feature permission:
<permission key="import_folder"> <admin_access>2</admin_access> <user_access>1</user_access> <client_type>0</client_type> <group></group> <value_type>0</value_type> <value></value> </permission>
XML- Save the setup.4apmsetup and empty the system configuration cache via “General system configuration / System settings / Maintenance”.
- End the user session and log in again.
- Open the “General system administration” via the mega menu.
- Open the “User settings” category.
- Open “Role configuration”.
- Select a user role.
- Click on the “Folder” label in the module overview and open the module settings.
- The “Allow upload to folder” permission must be set under the “Feature authorizations” tab.
- The “Authorization for upload folder for this role” was set under the “Feature authorizations” tab via the new permissions in the setup.4apmsetup.
Enter the complete path to the required upload folder in the field.
For example: “Data/Uploads/Role marketing”
Be sure to use the “slash” divider for Linux and Windows servers. - Open the “Presets” tab and enter the complete path to the required upload folder in the “Upload folder for this role” field.
For example: “Data/Uploads/Role marketing”
Be sure to use the “slash” divider for Linux and Windows servers. - Save the entries.
- Users should log out of the system and log back in to ensure the change has definitely been made.