I have problem by project id on nodjs

hi everyone I got a problem, This is my code:
const client = ipfsHttpClient(‘https://ipfs.infura.io:5001/api/v0’);
const uploadToIPFS = async (file) => {
try {
const added = await client.add({ content: file });
const url = https://ipfs.infura.io/ipfs/${added.path};
return url;
} catch (error) {
console.log(error);
}
};

but when I try to upload file, It needs ProjctId, ho can I get one?

3 Likes

Hi there,

For now the creation of new IPFS keys is being paused due to the migration to a new ipfs infrastructure see https://www.infura.io/blog/post/welcome-to-infuras-upgraded-ipfs-platform#:~:text=this%20unpinned%20data.-,Temporary%20limits%20on%20new%20IPFS%20Keys,-To%20ensure%20a
We don’t have a clear ETA yet on when this would be lifted, I can suggest using another solution like https://web3.storage/ in the meantime.

Regards,
Traian

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.