Last active
June 21, 2026 20:20
-
-
Save dmnc-net/5a4e64ac1c21accb377dc8e9f21206ac to your computer and use it in GitHub Desktop.
webshare.cz - cURL based file upload
Author
@dmnc-net Jak by se dal upravit script, aby nahraval soubory pod vlastnym uctem ? Pridani tokenu jako 'wst' nefunguje, resp. soubor se nahra na WS ale ne do mojich souboru.
Author
@kalkatit Nezkousel jsem to, ale tusim, zewst bude nutne poslat jako POST:
uploadURL=$(curl -s -X POST 'https://webshare.cz/api/upload_url/' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
--data-urlencode "wst=$WST" \
| xmllint --xpath '//url/text()' -)
@dmnc-net Bohuzel, nefunguje. Soubor se sice nahra, ident vracen API, ale soubor neni pod mojim uctem.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pro seskupeni vice souboru (napr.
i1ai2) do skupiny: https://webshare.cz/#/group/identSkupiny/curl 'https://webshare.cz/api/tie_files/' -F "idents[]=$i1" -F "idents[]=$i2"