summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-24 02:32:21 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-24 02:32:21 +0200
commit77ca8c0f2f9e95cfe132bbe546fd6e93d721988e (patch)
treeb0ad4f864fe2e6f1b76165de82c8b250d9a16854
parent0703c3ce05a330678dbb5c8ce56ba6ff096ee995 (diff)
log
-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",