Closed R0N1n-dev closed 5 months ago
Search for similar issues and examples
@R0N1n-dev
I think you can check this example https://github.com/node-formidable/formidable/blob/master/examples/forceBuffer.js
Or you can try formidable-mini
which is trimmed down version of formidable
- just the parser and exposes a FormData/File API, thus meaning the "files" there are regular Web API Files, so you can file.arrayBuffer()
(arraybuffer/uint8array) to Cosmic.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
None. Coz I cannot get a buffer
What result did you expect?
A buffer Ican use to upload the image coz the cosmic API need a buffer