In the Groups > File Import section you can upload files via FTP and import them.
These facilities are provided:
- Import Files – Here you can import file data in bulk from a text file, after uploading files via FTP to the folder managed by Groups File Access (/var/www/groups/wp-content/uploads/groups-file-access).
- Export Files – Here you can modify existing file entries in bulk. This will create a text file (in the supported import file-format) with current data for all files managed in the Groups > Files section.
- Scan for Files – Here you can add new files in bulk. This will create a text file (in the supported import file-format) with current data for all files in the folder managed by Groups File Access.
The accepted file-format is a plain text file with values separated by tabs provided on one line per file and in this order:
filename file_id name description max_count group_names
Description of fields:
filename – required – The full filename of the file uploaded to the /var/www/groups/wp-content/uploads/groups-file-access directory. Do not include the full path. A line that refers to the filename of an existing entry will update the information related to the entry.
file_id – optional – The Id of an existing file entry. If provided, the existing file will be deleted and the new file will be related to the entry.
name – optional – A descriptive name for the file. If left empty, the filename will be used.
description – optional – A detailed description of the file.
max_count – optional – The maximum number of allowed accesses to the file per user. Leave empty or use 0 for unlimited accesses.
group_names – optional – The names of the groups that are allowed to access the file, separated by comma. If empty, the file can not be accessed until a group is assigned.
The files must have been uploaded to the /var/www/groups/wp-content/uploads/groups-file-access directory before starting to import.