Hi @gupta-shrey, and welcome to the Infura community!
From the output, it looks like everything is posting to IPFS. Do you get a hash back that starts with Qm (I’m not sure, but it may be under that bottom dropdown arrow from your screenshot)? And how are you calling the get function to get your data back?
This tutorial may be of some use to you - the first half is uploading a file to IPFS, the second half is how to access that file. Let us know if you need any additional assistance!
As mentioned in the code what i want is that loading appears while file is being uploaded and main screen comes back when once file uploading is completed.
but here nothing happens. Either error or no error anything should have been console logged but none executed. I found that executing doesnt proceed the line
I think I see what you may be doing here - it looks like you’re trying to add the this.state.buffer into IPFS, rather than the file, which is resulting in the section that isn’t being executed. You can check out a tutorial here that shows the proper way to set that up!
Hey Updating the baseUri, syncing and uploading the metadata and file to ipfs at doesn’t run at all. I keep getting
const fetch = require(‘node-fetch’);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module C: … index.js from C:(file location)/uploadFiles.js not supported
Instead change the require of index.js in C:(file location)uploadFiles.js to a dynamic import() which is available in all CommonJS modules.
at Object. (file location) {
Code: ‘ERR_REQUIRE_ESM’}
Please how do I resolve this cus it’s a barrier
Hello everyone, I am new here. I am facing some issue with IPFS. the following code i am using for image upload to ipfs.infura.io gateway in my form. it was working fine but from few days it’s giving me this error. need your kind help!
Error: /api/v0/object has been removed, use /api/v0/dag instead
hey can you help me? yesterday my project was working successfully and was able to upload files and get that hash. today it gives this message in console POST https://ipfs.infura.io:5001/api/v0/add?stream-channels=true&progress=false 401 (Unauthorized)