Shared Folders Do Not Allow Uploading of Medium/Big Files

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 29.0.5): latest
Operating system and version (eg, Ubuntu 24.04): Unraid
Apache or nginx version (eg, Apache 2.4.25): Nginx
PHP version (eg, 8.3): prob latest

The issue you are facing:

Every time I try to upload a file through a shared file link (signed in or not), if the file is to big (like 200MB for example), it doesn’t upload and dies at the very end. I have been looking for a solution for the last week and nothing is working. For what I could fine, it might be bc of a difference between logged in uploads and non-logged in uploads.

Here are some other things that I have tried that have not worked or it didn’t really help is is relevant:

Changing .htaccess file
Changing code in file.php
This monstrosity (its what lead me to figuring out what is going on)
This bug report
Another bug report
Upload Only Bug (It doesn’t matter if its dropbox or edit mode for me)

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Create a shared folder
  2. Upload a medium size or greater file (I did 250MB)
  3. It will give an error saying that it couldn’t upload due to an unknown error

The output of your Nextcloud log in Admin > Logging:

There are no error logs for this issue.

The output of your config.php file:

<?php
$CONFIG = array (
  'datadirectory' => '/data',
  'instanceid' => 'probably no',
  'passwordsalt' => 'no.',
  'secret' => 'yeah... no',
  'trusted_domains' => 
  array (
    0 => '192.XXX.ETC:8774',
    1 => 'text.WEBSITE.com', #This is for OnlyOffice BS
    2 => 'nextcloud.WEBSITE.com',
  ),
  'dbtype' => 'pgsql',
  'version' => '29.0.7.1',
  'overwrite.cli.url' => 'https://192.XXX.ETC:8774',
  'dbname' => 'postgres',
  'dbhost' => '192.XXX.ETC:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_myname',
  'dbpassword' => 'hell no',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'upgrade.disable-web' => true,
  'loglevel' => 2,
  'maintenance' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache/nginx/system log in /var/log/____:

There were no logs for this issue. its weird

Public (not logged in) uploads (in <v30) do not use chunking. They are sensitive to a lot more aspects of the end to end path. Fortunately that’s going away this week (v30 is released!)

Before we dive into that though, can you clarify whether you can upload larger files via the Web UI as a logged in user successfully? That uses chunking (unless you’ve reconfigured it not to do so). It should work through most anything.

Lastly, are you using anything like Cloudflare (the free plan level has a 100MB body size limit)?

I can upload large files to the Web UI through the regular web ui, but when I go into the ‘shared file ui’ (the one where the link takes you to), it doesn’t work.

I do use Cloudflare, but I haven’t experienced the 100MB body size limit. I just double checked and uploaded a +200MB file thorough the main web ui just to make sure and all was good.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.