Hi:
Since day i am trying to disocver why my file is not accessable using public gateway, only through my gateway.
I have a 1000s of files added to ipfs netwrok through bash script using the floowing code:
/usr/local/bin/ipfs add -w -Q --nocopy $filename
the i store the result on database using the returning result from the above code.
All the code return using the reqular IPFS pattern that starting with Qm… hash.
When i finished uploading all file and tryed to access those files from public gateway, the files in not downloadable.
I check files using the following IPFS command:
ipfs dht findprovs $filehash
My IPFS node is not exisit within the list of node.
Then i start verify the files on filestore using
ipfs filestore verify
The files is there and they are oK. But all file hash start zb2rhY… hash.
I knew that the hash given by the bash script that start with Qm is for directory because i appand every file in it own directory
/usr/local/bin/ipfs add -w -Q --nocopy $filename
But the above command mean i can access the file by using
https://ipfs.io/ipfs/$hash/$filename
but they are not accessable, while i can access it using :
https://ipfs.io/ipfs/hashstartwithzb2rhy
Then i try to chech the resolver to find which hash the network give me for that file:
https://ipfs.io/api/v0/resolve?arg=$hash/$filename
the reult give my the hash start with Qm… which is not accessable .
I try today adding file from shell not from bash script .
And every thing seem OK. and the file added OK.
What wrong with those that added by bash script?