No upload >1GB in shared folders (if using the shared link) possible - traefik

Weelll… haha - got it. It is a known problem because of the following:

Hi @jospoortvliet
I just came across this issue and had the very same symptoms as described by @0xnor0. I’m running NC v16.0.5.
What I have discovered is that the upload works fine to the very same folder, when I’m logged in. However, when using a private browser session and the public shared link with upload option, then It does not work. Also, the two ways do upload the file distinct significantly!
When uploading logged-in, the file is sent in chunks of 10MB to the following URL:
/remote.php/dav/uploads/{user}/web-file-upload-079828e8c1d254f98d8b73d8304dbd80-1571255990916/188743680 (last component is changing between requests)
However, when uploading from the public upload-enabled link, then the entire file is sent in one single PUT request:
/public.php/webdav/filename.ext
Therefore, the maximum client-side post limit is reached (e.g. client_max_body_size for nginx) and the request never even hits PHP or NC but is refused by the web server. Increasing this limit, enables the upload. However, an upload size of 3.5GB is not necessarily the best option and not available from many hosting providers.
That this is a common use case has been documented here and here (and other places).
So an approach to the solution would be to use the same upload component (or at least approach) of the web interface for public shared links as it is used in the regular logged-in state.
If it is considered a bug or feature request, I don’t know. Probably more the latter. However, it would be cool if the web client could give a better error message. Which would be easy, given that the server returns a http status code of 413 Payload Too Large.
But given that it is indeed a common use case, it would be much better than the suggested approach of creating a common user for third parties.
Thanks,
Martin.

this is still the case. To get around it i added

LimitRequestBody 322122547200

into the .htaccess (/nextcloud/.htaccess) right below the </FilesMatch> part. It has to be in the <IfModule mod_headers.c>.
But i would prefer if the filehandling is getting changed to the 10mb split variant.