I'm developing an application using NextJS which will run on serverless (cloudflare pages), and has an endpoint that responds with an S3 POST presigned-url with conditions for file size and type.
This means the default aws-sdk/s3 library for node cannot work since it's running on cloudflare's edge (which doesn't support native node libs like os or crypto
, meaning we need to use aws4fetch).
I'm able to get normal PUT presigned-urls but cannot figure out how to get POST presigned-urls with conditions. I'm willing to pay for somebody to get this working, S3 bucket details and code will be provided. Need completed today.
TLDR: Rewrite about 20 lines to generate a presigned-post url for s3 file uploading with conditions for file type and file size. Needs to use aws4fetch library (or one that works with cloudflare pages). That's it. Code:
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-s3-presigned-post/ (this is example, needs to be in aws4fetch or lib that works with serverless)
Contact on discord: rayrnond
Bring a quote with you, I estimate 30-45 minutes of work if you have node s3 experience.
This means the default aws-sdk/s3 library for node cannot work since it's running on cloudflare's edge (which doesn't support native node libs like os or crypto
I'm able to get normal PUT presigned-urls but cannot figure out how to get POST presigned-urls with conditions. I'm willing to pay for somebody to get this working, S3 bucket details and code will be provided. Need completed today.
TLDR: Rewrite about 20 lines to generate a presigned-post url for s3 file uploading with conditions for file type and file size. Needs to use aws4fetch library (or one that works with cloudflare pages). That's it. Code:
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-s3-presigned-post/ (this is example, needs to be in aws4fetch or lib that works with serverless)
Contact on discord: rayrnond
Bring a quote with you, I estimate 30-45 minutes of work if you have node s3 experience.
- Type
- Requesting
- Provided by
- Individual
- Language
-
- JavaScript
- NodeJS
- TypeScript
