File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77## Unreleased
88### Added
99- add script to test Clowder extraction.
10- - add script to submit files to Clowder geo extraction.
1110- Added ability to delete extractor, both from api and GUI.
1211 [ CATS-1044] ( https://opensource.ncsa.illinois.edu/jira/browse/CATS-1044 )
1312- API add tags endpoint now returns the added tags.
Original file line number Diff line number Diff line change @@ -27,15 +27,14 @@ post_message() {
2727}
2828
2929# ------------------------ Create dataset ------------------------
30- DATASET_ID=$( curl -X POST -H " Content-Type: application/json" \
30+ DATASET_ID=$( curl -s - X POST -H " Content-Type: application/json" \
3131 -d ' {"name":"Temporary Test Dataset", "description":"Created automatically by test script."}' \
3232 $CLOWDER_URL /api/datasets/createempty? key=$CLOWDER_KEY )
3333DATASET_ID=$( echo $DATASET_ID | jq ' .id' | sed s/\" //g)
3434echo " Dataset ID: $DATASET_ID "
3535
3636# ------------------------ Upload file ------------------------
37- FILE_ID=$( curl -X POST -H " Content-Type: application/json" \
38- -F File=@$TARGET_FILE \
37+ FILE_ID=$( curl -X POST -F File=@$TARGET_FILE \
3938 $CLOWDER_URL /api/uploadToDataset/$DATASET_ID ? key=$CLOWDER_KEY & extract=0)
4039FILE_ID=$( echo $FILE_ID | jq ' .id' | sed s/\" //g)
4140echo " File ID: $FILE_ID "
You can’t perform that action at this time.
0 commit comments