json-upload
Upload given data representing a JSON 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’s table for compiled JSON documents.
For example, user that runs : php spark.php json-upload "json-1\root.name.json"
will get a file in the database : root.name
Command Syntax
json-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 json-upload "root.name.ds"
Upload a json file
php spark.php json-upload "root.name.ds" theme=DEFAULT
Upload a json file with presentation flags
php spark.php json-upload "root.name.ds" -hb theme=DEFAULT
Upload a json file with presentation flags
php spark.php json-upload "root.name.ds" -auto -hb theme=DEFAULT
Upload a json file with presentation flags