file-upload
Upload a Describe file to the database.
The user copies a file to upload in the _uploads directory,
might put it inside a folder or not, gives that relative path to the function,
and the file gets uploaded to the database.
For example, user that runs : php spark.php file-upload "file-1\root.name.ds"
will get a file in the database : root.name
Command Syntax
file-upload LOCAL_FILE_PATH [PRESENTATION_FLAGS]
LOCAL_FILE_PATH - The local path of the raw source file in the _uploads folder to be uploaded
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.
Examples
php spark.php file-upload "root.name.ds"
Upload a file
php spark.php file-upload "root.name.ds" theme=DEFAULT
Upload a file with presentation flags
php spark.php file-upload "root.name.ds" -hb theme=DEFAULT
Upload a file with presentation flags
php spark.php file-upload "root.name.ds" -auto -hb theme=DEFAULT
Upload a file with presentation flags