Update 'post.sh'

Remove url from file description
This commit is contained in:
NaiJi ✨ 2022-09-07 12:33:54 +00:00
parent 0e21cf23e6
commit 8578ec6bf3
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ wget "${source_url}" 2> /dev/null || (echo "Error with ${source_url}" && exit 1)
media_json=$(curl -X POST "${api_base_url}/api/v1/media" \
-H "Authorization: Bearer ${access_token}" \
-F "file=@`ls *`" \
-F "description=${source_url}")
-F "file=@`ls *`")
media_id=$(jq -r ".id" <<< ${media_json})