IPFS - Upload new files to existing path with immutable url hash

Hello,

I was wondering if it’s possible to upload a new file with Infura IPFS for an existing directory CID or path, in order to be able to have an immutable link + filename.

Python
files = { 'filename': 'file_content' }

response = requests.post('https://ipfs.infura.io:5001/api/v0/add?cid-version=1&wrap-with-directory=true', files=files, auth=auth)

It’s always generating new directories and different file hash keys.

Thanks

Hi @afonso23 Thank you for reaching out and welcome to our Infura community.

There is a thread already started on the IPFS community around this topic -> https://discuss.ipfs.io/t/how-to-add-a-file-to-existing-directory/3830

Could you please check and let me know if this helps?