core icon indicating copy to clipboard operation
core copied to clipboard

S3 upload

Open Keanottesen opened this issue 3 years ago • 0 comments

I try to upload a file to s3. But is uploading an empty file. When I try streaming the file manually it also says that my file does not have a content-length. I guess it is the same error. But I can upload a file to s3, if I take the file from the path "uploads" with fs and upload it directly through Drive.

Screenshot 2022-08-10 at 13 24 57

Package version

5.8.4

Node.js and npm version

v16.13.0 and 8.1.0

Sample Code (to reproduce the issue)

` const coverImage = request.file("file_content", { size: "2mb", extnames: ["jpg", "png", "gif"], })!;

await coverImage.moveToDisk("./test");`

Keanottesen avatar Aug 11 '22 07:08 Keanottesen