pinata is a non-fungible token media management platform and API.
Questions tagged [pinata]
30 questions
4
votes
1 answer
Writing file in /tmp in a Firebase Function does not work
I am writing a Firebase function that exposes an API endpoint using express. When the endpoint is called, it needs to download an image from an external API and use that image to make a second API call. The second API call needs the image to be…

Maestros
- 369
- 1
- 5
- 13
2
votes
2 answers
How can I upload a json file (or JavaScript Object) to IPFS in NextJS?
I am trying to upload the metadata(JavaScript Object) of a file already uploaded to IPFS, from the client side in the NextJS. I am able to upload files(PDFs) to IPFS using the Infura's HTTP API with the help of the ipfs-http-client package, but I am…

saditya
- 93
- 1
- 10
2
votes
1 answer
S3 to IPFS from Pinata
I am trying to upload a lot of files from S3 to IPFS via Pinata. I haven't found in Pinata documentation something like that.
This is my solution, using the form-data library. I haven't tested it yet (I will do it soon, I need to code some…

Damián LLuch Castelli
- 51
- 1
- 3
2
votes
1 answer
Saving uploaded file to Pinata IPFS in NodeJS
I've been trying to save uploaded image files to IPFS in NodeJs , while it seems Pinata saves them, the files are pretty much gibberish (after downloading the images are broken).
My code :
// Nodejs route.
exports.postImage = async (req, res, next)…

RRob
- 167
- 1
- 2
- 9
1
vote
1 answer
Running npm run build produces same output
When running npm run build on a project where I've changed something on its package.json, produces the exact same output as if I hadn't done any changes after running npm run build again.
I'm trying to upload the build folder to Pinata and it's…

dNyrM
- 545
- 1
- 4
- 17
1
vote
1 answer
Is there a way to change the picture after CID is created in Pinata?
everyone!!
Can i change the picture after minitng at Opensea?
Upload the image and json file to pinata.
And after minting on Opensea, can I change the image on pinata?
I want to change the image in Pinata so that it can be applied in Opensea.
I…

katamela
- 21
- 4
1
vote
0 answers
Pinata Pinning A Directory In Golang
I am using Pinata to upload files in Go to a private gateway using its submarine feature; while it works well, I am wondering how to pin a directory instead. The documentation says it is "identically to pinning a file, with the main difference being…

mev
- 177
- 5
1
vote
1 answer
Uploading bigger files to Pinata using pinata sdk - nodejs
I'm trying to upload bigger video files to pinata of around 1-2GB. I'm using pinata SDK and using the pinFileToIPFS function to pin file. However, it is taking forever and ends up crashing the node server.
I looked at the Pinata docs, but couldn't a…

Arshpreet Singh
- 41
- 2
1
vote
2 answers
How to pass File to Firebase Functions
I'm trying to pass a file (image) from my Reactjs app to Firebase Functions to then upload it to Pinata using their Node.js sdk but my cloud function keeps returning: ERR_INVALID_ARG_TYPE
Is it possible to pass a file to Firebase Functions?
I need…

cormacncheese
- 1,251
- 1
- 13
- 27
1
vote
0 answers
Uploading metadata to IPFS using Pinata API for NFTs
I'm having an issue uploading my metadata to Pinata via their API. I've tried it in a test file and it works perfectly, but in my larger file, it's throwing an error. This is my Upload function below. I think the issue is when upload(metadata)…

Jonathan Cole
- 11
- 4
0
votes
0 answers
How can I pin json to ipfs with pinata (pinJsonToIpfs method) info directory? React
const metadata = {
pinataContent: {
name: nftItem.name,
image: imageUrl,
description: nftItem.description,
external_url: nftItem.externalUrl,
…

Егор Довыденко
- 21
- 4
0
votes
0 answers
Firebase Cloud Function in typescript not working with form data request
I am writing this cloud function in typescript and deploying it to firebase.
This endpoint receives form data http request with some files and then it writes these files to /tmp directory and after that it tries to upload these files to IPFS using…

Omar Osman
- 44
- 3
0
votes
0 answers
Pinata API Error "Incorrect request. Please send the correct format, { hashToPin: 'yourHash', pinataMetadata: (optional metadata)} For NFTs
This is My Code where i am uploading image in IPFS with Pinata API
try {
// Upload Image in Pinata
const formData = new FormData();
formData.append('file',image);
const resFile = await…

Naincy Chauhan
- 1
- 1
0
votes
1 answer
Unable to fetch data from Pinata (IPFS)
I am trying to fetch the image and data which is uploaded to IPFS using Pinata endpoints but I am not able to load it and its showing failed to fetch at LoadNFTs(this is the function name),
here is the code for uploading the file to the ipfs :
…

krish
- 43
- 4
0
votes
0 answers
How can I read from S3 and then write to IPFS using Pinata?
I have the following code which has the intention to retrieve a file from a S3 bucket and then directly pin it to IPFS using Pinata API:
const axios = require('axios');
const FormData = require('form-data')
const fs = require('fs')
const config =…

Falcon Stakepool
- 139
- 1
- 1
- 9