This is the command wg-fileImport that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
fileImport - Import files into WebGUI's Asset Manager.
fileImport --configFile config.conf --pathToFiles path
This WebGUI utility script imports files into WebGUI's Asset Manager attached to a
specified parent Asset, helping bulk uploads of content.
This utility is designed to be run as a superuser on Linux systems, since it needs to be
able to put files into WebGUI's data directories and change ownership of files. If you
want to run this utility without superuser privileges, use the --override option described
The WebGUI config file to use. Only the file name needs to be specified, since it will
be looked up inside WebGUI's configuration directory. This parameter is required.
Path to a folder containing the files to import. This parameter is required.
Attach the imported files to the Asset id in WebGUI's Asset Manager. This parameter
Make members of WebGUI's group identified by id be able to edit the uploaded files. If
left unspecified, it defaults to Group ID 4, (Content Managers).
Make members of WebGUI's group identified by id be able to view the uploaded files. If
left unspecified, it defaults to Group ID 7, (Everybody).
Make WebGUI's user identified by id own the uploaded files. If left unspecified, it
defaults to User ID 3 (Admin).
The system user that your web server runs as. If left unspecified it will default to
This flag will allow you to run this utility without being the super user, but note
that it may not work as intended.
Skip files older than interval seconds. If left unspecified, it will default to skip
Import only those files with matching file extensions. patterns is a list of comma-
separated extensions to match. If left unspecified, it will default to import all
Import files recursively. If left unspecified, only files in the folder will be
imported, without following subfolders.
Overwrite any matching file URL with the new file rather than creating a new Asset for
the file. Instantiate the existing asset and replace the file.
Do not include the filename extension in the Title and menuTitle database fields.
Disable all output unless there's an error.
Shows this documentation, then exits.
The following exit values are returned upon completion:
0 Successful execution.
1 Stop the script if not super user.
2 A folder can't be opened for reading.
3 Two files had the same name and were selected to be imported
during recursive mode.
4 Missing required parameter.
5 Specified parent AssetId does not exist.
Use wg-fileImport online using onworks.net services