How to upload a folder of images, by giving only path using npm's pinata sdk ? I only want to give folder's path. using javascript.
2 Answers
Ok, After a lot of R&D,found out that you cannot, upload folder of images using the pinata sdk(npm pack.). But you can use Moralis and IPFS public gateway.
You can use:
const IMAGES_LOCATION = "path/to/folder";
const imageFolderUploadResponse = await pinata.pinFromFS(IMAGES_LOCATION);