← drnx.dev

Zeph

Ephemeral file drops up to 250 MB. Smaller files live longer.

≤ 10 MB → 4h · 250 MB → 1h
file=./example.zip
drop=$(curl -fsS https://zp.drnx.dev/api/init \
  -H 'Content-Type: application/json' \
  --data "$(jq -n --arg name "$(basename "$file")" \
    --argjson size "$(wc -c < "$file")" \
    '{filename:$name,sizeBytes:$size}')")
curl -fsS -T "$file" \
  -H "If-Match: $(printf '%s' "$drop" | jq -er '.uploadHeaders["If-Match"]')" \
  "$(printf '%s' "$drop" | jq -er '.uploadUrl')" && printf '%s' "$drop" | jq -r '.url'