mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:56:30 +00:00
add resource folder to config for proper folder auto upload
This commit is contained in:
@@ -3,6 +3,7 @@ set CONFIG=%1
|
||||
@echo off
|
||||
|
||||
set API_URL=https://api.azaion.com
|
||||
set RESOURCES_FOLDER=stage
|
||||
|
||||
set EMAIL=uploader@azaion.com
|
||||
set PASSWORD=Az@1on_10Upl0@der
|
||||
@@ -28,12 +29,12 @@ for /f "tokens=2 delims=:" %%a in ('echo %RESPONSE% ^| findstr /i "token"') do (
|
||||
|
||||
echo Uploading files to resources...
|
||||
|
||||
curl --location %API_URL%/resources ^
|
||||
curl --location %API_URL%/resources/%RESOURCES_FOLDER% ^
|
||||
-H "Authorization: Bearer %TOKEN%" ^
|
||||
-H "Content-Type: multipart/form-data" ^
|
||||
--form "data=@%FILE1_TO_UPLOAD%"
|
||||
|
||||
curl --location %API_URL%/resources ^
|
||||
curl --location %API_URL%/resources/%RESOURCES_FOLDER% ^
|
||||
-H "Authorization: Bearer %TOKEN%" ^
|
||||
-H "Content-Type: multipart/form-data" ^
|
||||
--form "data=@%FILE2_TO_UPLOAD%"
|
||||
|
||||
Reference in New Issue
Block a user