You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
used with (i.e. popular names of modules): @aws-sdk/client-s3, @aws-sdk/lib-storage
any other relevant information:
What problem are you trying to solve?
Using this example from the docs, I'd like to be able to get the return value of the s3.upload call to store some data in a db record. I'm using the newer aws client libs (@aws-sdk/client-s3 and @aws-sdk/lib-storage), but it is basically the same thing as the example link. The following snippet shows where I'm trying to access the data:
constform=formidable({keepExtensions: true,fileWriteStreamHandler: (file)=>{constpass=newPassThrough();if(!(fileinstanceofVolatileFile)){returnpass;}// This promise returns data I'd like to use after the parse call belownewUpload({client: s3Client,params: {Bucket: 'BUCKET_NAME',Key: file.newFilename,Body: pass,},}).done();returnpass;},});constfiles=(awaitform.parse(req))[1];// Do something with files and return value of `new Upload` above
The text was updated successfully, but these errors were encountered:
Support plan
Enterprise): community
Context
What problem are you trying to solve?
Using this example from the docs, I'd like to be able to get the return value of the s3.upload call to store some data in a db record. I'm using the newer aws client libs (
@aws-sdk/client-s3
and@aws-sdk/lib-storage
), but it is basically the same thing as the example link. The following snippet shows where I'm trying to access the data:The text was updated successfully, but these errors were encountered: