Skip to content

Commit

Permalink
fix: file upload for batch processing of multiple folders
Browse files Browse the repository at this point in the history
  • Loading branch information
marco79cgn committed Dec 25, 2024
1 parent e4a8f14 commit d416e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio2tonie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ else
echo "Created $OUTPUT_FILE with $count chapter(s)."
if [ "$TEDDYCLOUD_IP" ]; then
echo -n "Uploading file to Teddycloud..."
response_code=$(curl -s -o /dev/null -F "file=@$OUTPUT_FILE" -w "%{http_code}" "http://$TEDDYCLOUD_IP/api/fileUpload?path=&special=library")
response_code=$(curl -s -o /dev/null -F "file=@$SOURCE/$OUTPUT_FILE" -w "%{http_code}" "http://$TEDDYCLOUD_IP/api/fileUpload?path=&special=library")
if [ "${response_code}" != 200 ]; then
echo "Error trying to upload to Teddycloud."
else
Expand All @@ -88,7 +88,7 @@ if [ "$TEDDYCLOUD_IP" ]; then
echo -n "Uploading file to Teddycloud..."
response_code=$(curl -s -o /dev/null -F "file=@$OUTPUT_FILE" -w "%{http_code}" "http://$TEDDYCLOUD_IP/api/fileUpload?path=&special=library")
if [ "${response_code}" != 200 ]; then
echo "Error trying to upload to Teddycloud."
echo "Error! Upload didn't succeed."
else
echo ": OK"
fi
Expand Down

0 comments on commit d416e67

Please sign in to comment.