🗃️ Turn-key solution for signed & secure file-uploads to an S3 compliant storage service such as R2, AWS, or Minio. Built for Next.js. Generates signed URLs for uploading files directly to your storage service and optionally integrates with a database to store additional metadata about your files.
When creating a post policy there is a function available to add metadata to the post policy then gets set on the stored object once the file is uploaded.
I have this flow currently working, however I am not able to figure out how to construct the PUT request that is sent to the post policy url.
I've tried sending metadata as headers or in the form request body, prefixing and not prefixing with the x-amz- headers.
All the approaches ended up in a rejected request.
If this is figured out then next-upload will be able to store metadata for uploaded files without requiring an asset store to be configured.
When creating a post policy there is a function available to add metadata to the post policy then gets set on the stored object once the file is uploaded.
I have this flow currently working, however I am not able to figure out how to construct the PUT request that is sent to the post policy url.
I've tried sending metadata as headers or in the form request body, prefixing and not prefixing with the
x-amz-
headers.All the approaches ended up in a rejected request.
If this is figured out then
next-upload
will be able to store metadata for uploaded files without requiring an asset store to be configured.