I am trying to use Pinata plugins pinFile option but it doesn’t work even when I am in the same directory. It gives the error ‘no such file or directory’.
The things I’ve tried are:
Path to the asset folder
In the same folder, ‘./image.png’
Using the above with require()
Adding an input and getting the URL with URL.createObjectURL
The code is:
await Moralis.Plugins.pinata.pinFile({
path: './image.png',
})
Any solutions?