Hot Summer Deals are Here!
Celebrate with up to 90% off on 15,400 resources
04
Days
11
Hours
43
Mins
05
Secs

SOLVED: S3 Presigned POST - serverless

Status
This thread has been locked.

Analyticus

Feedback score
2
Posts
26
Reactions
9
Resources
0
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.
 
Type
Requesting
Provided by
Individual
Language
  1. JavaScript
  2. NodeJS
  3. TypeScript
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.
Status
This thread has been locked.
Top