Tom Balev
Tom Balev
CDCloudflare Developers
Created by Tom Balev on 10/2/2023 in #pages-help
Upload files using CF Pages with Remix (multipart form)
Remix needs unstable_createFileUploadHandler to be able to extract files from form data, but I can't figure out how (and where from) to import unstable_createFileUploadHandler from. One option is import { unstable_createFileUploadHandler } from "@remix-run/node" but that won't work as this requires node buffer. Any ideas?
2 replies
CDCloudflare Developers
Created by Tom Balev on 7/8/2023 in #workers-help
Get bucket URL from R2Bucket object
Is it possible to construct full URL from env R2Bucket object? Something like: const url = new URL('https://${env.BUCKET}.${env.ACCOUNT_ID}.r2.cloudflarestorage.com'); but instead of env.BUCKET using R2 Bucket binding
2 replies