Home

Last Hot Day?

Published: 2023-08-16

  • govi
  • ✔ image upload
  • billz
  • flonase
  • ping Lon

Sveltekit endpoint fs

You have to use the built in fs (i am assuming by importing it) than can use the Filesystem API to read and write. Will need to hid the upload or just return a nice error if someone attempts to upload. Error could say something like “if you want to upload images call me etc”

curl "${UPLOAD_URL}"     --progress-bar     --verbose     -F build="${BUILD}"     -F version="${VERSION}"     -F ipa="@${IPA};type=application/octet-stream"     -F assets="@-;type=text/xml"     -F replace="${REPLACE}"     -A "${CURL_FAKE_USER_AGENT}"     <<< "${ASSETS}"     | tee -a "${LOG_FILE}" ; test ${PIPESTATUS[0]} -eq 0

Images are relative to route (so a blog post is ../test.jpg

![Alt text](/static/test.jpg  "a title")

Alt text