Spaces:
Paused
Paused
alessandro trinca tornidor commited on
Commit ·
60df088
1
Parent(s): 6db3cca
fix(batch_extract): quote curl file path to handle special characters
Browse files- scripts/batch_extract.sh +1 -1
scripts/batch_extract.sh
CHANGED
|
@@ -106,7 +106,7 @@ extract_pdf() {
|
|
| 106 |
# Upload
|
| 107 |
local upload
|
| 108 |
upload=$(curl -sf --max-time 30 -X POST "$base_url/upload" \
|
| 109 |
-
-F "files=@$pdf_path") || { echo "FAIL upload: $pdf_name" >&2; return 1; }
|
| 110 |
|
| 111 |
local fpath
|
| 112 |
fpath=$(echo "$upload" | python3 -c "import sys,json; print(json.load(sys.stdin)[0])") \
|
|
|
|
| 106 |
# Upload
|
| 107 |
local upload
|
| 108 |
upload=$(curl -sf --max-time 30 -X POST "$base_url/upload" \
|
| 109 |
+
-F "files=@\"$pdf_path\"") || { echo "FAIL upload: $pdf_name" >&2; return 1; }
|
| 110 |
|
| 111 |
local fpath
|
| 112 |
fpath=$(echo "$upload" | python3 -c "import sys,json; print(json.load(sys.stdin)[0])") \
|