peakshift / makers.bolt.fun

https://makers.bolt.fun
GNU General Public License v3.0
31 stars 21 forks source link

feat: add function to get unique upload url add HostedImage table #131

Closed Dolu89 closed 2 years ago

Dolu89 commented 2 years ago

This PR add a POST api to get a unique cloudflare upload URL for image upload from the front end

curl --location --request POST 'http://localhost:8888/dev/upload-image-url' \
--header 'Content-Type: application/json' \
--data-raw '{"filename": "test.png"}'

response

{
    "id": "eb96...200",
    "uploadURL": "https://upload.imagedelivery.net/wy...7lig/eb96...200"
}

Related to #51

netlify[bot] commented 2 years ago

Deploy request for makers-bolt-fun-preview rejected.

Name Link
Latest commit c9c7033dbd3b79a5826a0093b4b402ec3264f236
netlify[bot] commented 2 years ago

Deploy Preview for makers-bolt-fun-stories ready!

Name Link
Latest commit c9c7033dbd3b79a5826a0093b4b402ec3264f236
Latest deploy log https://app.netlify.com/sites/makers-bolt-fun-stories/deploys/6307429413e5dc0009d495d6
Deploy Preview https://deploy-preview-131--makers-bolt-fun-stories.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.