summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--splice.pl19
1 files changed, 18 insertions, 1 deletions
diff --git a/splice.pl b/splice.pl
index dae44da..0122aa4 100644
--- a/splice.pl
+++ b/splice.pl
@@ -89,7 +89,24 @@ for my $filename (@sequence_files) {
}
if (defined $endpoint) {
- print("upload to $endpoint\n");
+ print("post to $endpoint\n");
+ print(join("\n",
+ [
+ "curl",
+ "-X", "POST",
+ "-F", "folder_id=$folder_id",
+ "-F", "module=$module",
+ "-F", "name=$dataset.mov",
+ "-F", "url=https://s3.amazonaws.com/i.asdf.us/cortex/lens/data/$folder_id/$dataset.mov",
+ "-F", "dataset=$dataset",
+ "-F", "activity=splice",
+ "-F", "generated=false",
+ "-F", "processed=true",
+ "-F", "datatype=video",
+ $endpoint
+ ]
+ ));
+
system("curl",
"-X", "POST",
"-F", "folder_id=$folder_id",