Is there a max file size for uploads?

@qi_ma @joshuef

quick question guys :slight_smile:

is there a max file upload size for the network curently ?

I have been trying to upload a 6Gb Ubuntu iso and it is reporting a successful upload.
but every time it completes it gives a diferent address and all of them fail for downloading ?

ubuntu-24.04.1-desktop-amd64.iso: cbd8b1f0585ae271ba92efef3b8c51dbe77cc4bd20b82e0b9127461f9f37446d
ubuntu-24.04.1-desktop-amd64.iso: e48c4db8701a2cc83b2a91e87728b35825a7548dabb9078211f2d15fc6b87bc0
ubuntu-24.04.1-desktop-amd64.iso: b4177ff165ba87b61e821fbc89b7ec39de3c16dcda8141855584842f393d0ed5
ubuntu-24.04.1-desktop-amd64.iso: d78f67b505ec957b85e302c72fb096d8f404d409517ba3e77a4d6d8c927ad597
ubuntu-24.04.1-desktop-amd64.iso: c0efba837553a25b0f88acfe3810ea1f07503b9abc0fe50ca472a3636e820909
ubuntu-24.04.1-desktop-amd64.iso: 54b390f6ea19083c8a16a0dcb7c5487cdc0cc976dd74733d8609bb6f80ec03eb
ubuntu-24.04.1-desktop-amd64.iso: 90c6ae6ac14ac7b6970623ef4eaa9b755ea048c80d2859571189c5975126b47e
ubuntu-24.04.1-desktop-amd64.iso: 83f009f452fd434888c179432218bb006380cafdd216a146655f3558f2ec7bf1
ubuntu-24.04.1-desktop-amd64.iso: cd1dfd3f909c33a66293a349acde4cc6f70148d3e1a972802044b5b92a43ae57
ubuntu-24.04.1-desktop-amd64.iso: 435e3f7a1ef59487889d46bea85af32d9211b4834adb9f1a113d2c96000b1486
ubuntu-24.04.1-desktop-amd64.iso: cf8506f3e53101bc6d52cc3f0524c34a299265cd60c13c28f4cc6fc9f0b93a44
ubuntu-24.04.1-desktop-amd64.iso: e7475e829144cc6b040ef9cf5f7c1d2bf1d2c875398368cb05fee08ed4793670
ubuntu-24.04.1-desktop-amd64.iso: 1cb7ae45f6e82b0bcaa3f2119c2a3de062a631eb30c5208a33ec933f185d5fa1
ubuntu-24.04.1-desktop-amd64.iso: 47e2463938dd54608fe38e67da51605de8a8241e362d2a194828cccb3fbbbb8f

sample of upload out put

Logging to directory: "/home/.local/share/safe/autonomi/logs/log_2024-11-15_12-40-50"
autonomi client built with git version: stable / 0205c20 / 2024-11-12
Uploading data to network...
Uploading file: "ubuntu-24.04.1-desktop-amd64.iso"
Upload completed in 395.384934257s
Successfully uploaded: ubuntu-24.04.1-desktop-amd64.iso
At address: 90c6ae6ac14ac7b6970623ef4eaa9b755ea048c80d2859571189c5975126b47e
Number of chunks uploaded: 7
Total cost: 7 AttoTokens

its only costing a few attos each time now so I am guessing the chunks are uploaded.

Log file’s

ab7be79f6d5997e19e8265ffeb36cfc7e9687e3399d579f372de666b9346b4ab
13 Likes

There is no max file size for upload.

Regarding different file addr, I think it could be due to different metadata involved.
I have passed it to my colleagures for further investigation.

Thanks for report the error

9 Likes

Thanks for reply @qi_ma I know you guys are busy.

I’ll wait for next release and get back at it and keep more logs :slight_smile:

8 Likes

There is one limit I thought of while reading the latest replies, the self encryption process stores a copy of all the chunks in the chunking directory and as such you require an equivalent amount of disk space as the size of the file. The chunks used to be stored in the users home directory path and as such would use the storage medium it is on. I think someone said it is now in a different place (/tmp ?)

But in any case you require enough storage on the disk that the chunking directory exists in.

Thus if home is on a 1TB drive and the file is on another drive and close to 1TB or larger then you cannot chunk it

If the home disk only has 100GB free then you’d be limited to a file less than 100GB in size

5 Likes

I seem to remember talk of it not being necessary to store all the chunks before starting to send them and that was an optimisation that might come later.

1 Like

Yes it is possible, only need to get the last chunk size from file, and use that to start the self encryption process and kep the first chunk size of the file.

Then only need 3 chunks in memory at a time. last+first+second allows first chunk to be created, then first+2nd+3rd allows the 2nd chunk to be created and so on till last chunk which needs 2nd last+last+first part of the file.

The last I knew they stored all chunks on disk first to save time when a chunk needs to be uploaded again.

2 Likes
10 Likes

Very nice! I remember discussing this being needed for video streaming.

3 Likes

We need the reverse for video etc streaming, but hopefully this implies that is on the way too. Unless it is in there already, I didn’t check! I need both for my backup app so :crossed_fingers:

7 Likes

Oic, thought it was to encrypt. Still, sounds good for streaming downloads more efficiently. Iirc, i butted up against that with sn_httpd streaming in old API version.

5 Likes

Both are there now guys. Just got it done. Still to be merged for rust but already in python self-encryption · PyPI a bit of a marathon one that :D. :smiley:

13 Likes