None of the upload means available in the documentation work correctly
I recently tried to use this library within a clean, newly initialized adonisjs project.
Using the means indicated by the documentation, I receive the following error:
[ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of File
The same error is overcome when enabling autoProcess: true, inside config/bodyparser.ts
However, it returns a TypeError each time the function is called:
TypeError: this.adapter.config.endpoint is not a function
If the autoProcess is set to false, I get null during file upload:
let avatar = ctx.request.file('avatar')
console.log(avatar)
null
My goal was to stream the file directly to S3 so that there was no need for state management within the application that works inside kubernetes
If my usage is wrong, I apologize in advance.
None of the upload means available in the documentation work correctly
I recently tried to use this library within a clean, newly initialized adonisjs project. Using the means indicated by the documentation, I receive the following error:
The same error is overcome when enabling
autoProcess: true
, insideconfig/bodyparser.ts
However, it returns a TypeError each time the function is called:
If the autoProcess is set to false, I get null during file upload:
My goal was to stream the file directly to S3 so that there was no need for state management within the application that works inside kubernetes If my usage is wrong, I apologize in advance.
Package version
Node.js and npm version
node v18.16.0 npm v9.5.1
Sample Code (work well)