How to upload file from local path using the utapi uploadFiles or uploadFilesFromURL
I'm trying to upload files from disk without setting up and endpoint or getting from the client but when I use the utapi functions, they do not work directly with the file path or the buffer gotten with fs.readFile(path).
How do I transform the file so I would be able to upload using either
utapi.uploadFiles(files)
or utapi.uploadFilesFromURL('/file_path')
0 Replies