root@91857779a76648:/# curl --unix-socket /.fly/api "http://localhost/v1/apps/dov-testing-stuff/machines/91857779a76648/metadata" {} root@91857779a76648:/# curl --unix-socket /.fly/api "http://localhost/v1/apps/dov-testing-stuff/machines/91857779a76648/metadata/random_key" -d '{"value":"random"}' root@91857779a76648:/# curl --unix-socket /.fly/api "http://localhost/v1/apps/dov-testing-stuff/machines/91857779a76648/metadata" {"random_key":"random"} root@91857779a76648:/# There are a bunch of n...| Fly.io
I’m hosting Django (backend) on Fly and React (frontend) on Cloudflare. Here’s my frontend code to upload an image: export const createPostApi = async (imageFile, text) => { const formData = new FormData(); formData.append("text", text); if (imageFile) formData.append("image", imageFile); const response = await api.post("/create-post/", formData, { headers: { "Content-Type": "multipart/form-data" }, }); return response.data; }; which goes to this view: @api_v...| Fly.io