New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ipfs-pack and upload behaviour with required mapped fields #20
Comments
So would you like to use the ipfs pack without the previous steps/generation? |
@juliancwirko I created 10K pngs/jsons without the edition field - that seems not an issue. |
But have you configured a custom metadata structure without 'edition' then? The assumption was that even if you modify the metadata output, all fields should be used, but it would be good to focus more on how to make some of them optional and not break the whole flow. Of course, making all optional doesn't make sense because at least the ipfs cid for the image/asset should be there. I'll look at this PR and overall logic. Maybe most of the fields could be optional. |
I haven't looked too much into the generation of the png/json files but it seems on the creation part the |
Understood, I haven't had much time, but I will for sure look into how to make the fields optional on each step. I'll try today. |
@juliancwirko I think the main issue on the ipfts-pack is that the script we include to upload packed files works but not on a large collection base. 10K items with ~14GB will silently fail on some point. I'll try to extract the metadata adjustment based on a given IPFS location. NFT UP seems to handle large uploads very well but this requires the upload in 2 separate steps. |
@dohomi, do you mean the uploading or packing process? Because you wrote about ipfs-pack. |
They don't use ipfs-car. If the problem was with packing using this lib, the nft-art-maker should probably pack the CID files using nft.storage, I am not sure yet, but I think the whole process is here: https://github.com/nftstorage/nftup/blob/main/public/electron.js The problem is that it will need some more work because the car pack operation: https://github.com/nftstorage/nftup/blob/main/public/electron.js#L105 |
Also there are similar issues in ipfs-car repo: web3-storage/ipfs-car#114 |
The current Secondly I was using I am open to any suggestion - the nftup is very vague as they state you can drop metadata and image in one go - but that would end up with wrong CID's again on the metadata. [EDIT] I changed the title of this task as it went sideways :-) |
Ok, so I think there are two problems:
|
@juliancwirko I can look into #22 |
@juliancwirko great improvement for the upload functionality! I will close this issue now because we handle all subtasks already in tickets or PRs |
As edition is currently required it would be great to mention this in the README. I wasn't aware of it - and then all filenames are corrupted after running the pack command.
Another solution would be to use the
map
index instead of the edition field. Is there any downside?The text was updated successfully, but these errors were encountered: