[Feature] Upload large files via streaming instead of buffering #11076
Closed
JordanOlivet
started this conversation in
Feature Request
Replies: 4 comments
-
Oh I didnt find this discussion. Thanks, I be following it closely. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Note that #1674 is now locked. |
Beta Was this translation helpful? Give feedback.
0 replies
-
actually I found new feature of immich to automatically switch between different network fix issue related to uploading big files. As long as we at home, big files can be uploaded properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
I recently setup Immich on my home server and it is great.
But I ran into one small issue, here is my setup.
I use a reverse proxy (traefik) to get access to my Immich instance through internet using a DNS and all my clients (actually only two, the web client and the Immich android app on my smartphone) uses the DNS url.
I ran the automatic upload with my smartphone and all my photos and videos have been uploaded but 3 videos.
I tested to upload them throught the web client but the same problem, no upload.
To go further, I installed the Immich cli to try to upload the videos with that and same, the upload failed. But I got and additional info, an error 413 entity too large.
So I search online and found that this could be caused by the reverse proxy or DNS manager (for it is cloudflare).
I configure my reverse proxy but no change but I found that Cloudflare limit to 100Mb the size of the request content, in the lowest tier (my case).
To be sure, I retested Immich cli but with my local ip, on my local network and that worked.
So, I dont want to pay a higher tier on Cloudflare (and the highest tier allows only 500Mb or you have to be an enterprise and negotiate) but I was thinking that if I reach the max request size, this is maybe because Immich send the whole file in one single time instead of streaming it to the server and perform a md5 check or else at the end to ensure that the file has been fully sent.
I think this approach would eliminate completely the problem and also maybe mitigate some problems with timeout on large files (I rapidly saw that while searching).
I dont know if this is possible or even already existing (I searched but found nothing related).
If it can resolve this problem it would be pretty useful for users (if it really bypass request max size).
For example, I found another person with similar upload problem here.
Thanks in advance and ask any question about it, I gladly answer it.
Immich server version : 1.108.0
Immich android app version : 1.108.0
PS : Sorry for my bad english, this is not my first language.
Platform
Beta Was this translation helpful? Give feedback.
All reactions