What is max file size for upload

hi

I am a user of cloud storage that is using nextcloud. I wanted to upload 20GB file using standard nextcloud web interface. But it did not work.

I do not want to install Windows application.

  • How can I upload large files into NextCloud?
  • What is the max file size limit for standard web interface?
  • What is the max file size limit for webDAV upload / download?

Thank you
Radek

How can I upload big files into Nextcloud?

maybe it’s a good way to start here

https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html

Upload limits are more or less not nextcloud but php and OS concerned.

php.upload-max-filesize
php.post-max-size
php.max-input-time
php.max-execution-time

The default maximum file size for uploads is 512MB. You can increase this limit up to what your filesystem and operating system allows. There are certain hard limits that cannot be exceeded:

  • < 2GB on 32Bit OS-architecture
  • < 2GB with IE6 - IE8
  • < 4GB with IE9 - IE11

64-bit filesystems have much higher limits; consult the documentation for your filesystem.

Another aspect is that it can be helpful to additionally set a new chunk size to nextcloud when operating with very large files.

For this see the admin manual here:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#adjust-chunk-size-on-nextcloud-side

And third the browser itself also can be a limiter.
e.g. upload with M$ Edge fails → but with Firefox / Chrome works.
So feel free to check this as well when having the correct php options set.

If you are using the Web UI or any of the official clients, chunking will be used, so you can upload any file size that your server is capable of (at least if you’re logged in).

But it did not work

If you share more info someone might be able to help, but that’s too vague. :slight_smile:

@kotelnikus
I have already experienced Nextcloud instances that behaved differently with regard to uploading with a user ID and uploading via a public share. Maybe you can try uploading via a public share if you haven’t tried this yet.

20 GB is already pretty big. Perhaps you should use other transfer technologies if this is possible for you. For example, storage based on sftp or rsync is probably more suitable. If yes find “sftp hosting”. Example is Hetzner Storage Box (e.g. sftp) vs.
Hetzner Storage Share (Nextcloud).

Public uploads don’t currently use chunking unfortunately. They do rely on all the web server/PHP timeout and related adjusted noted in the Big Files section of the Admin Manual.

That’s right. I also don’t understand why the behaviour is completely different. Wouldn’t it be much easier to simply standardise it? Or is chunking only possible with corresponding user crendentials?

I was not able to upload 16GB file while being logged in. Not sure when or why it stopped. It started but stopped

I was able to upload 2,2GB but it took sooooo long.

…have you tried (well take it as try!) to disable chunking completely by setting the following command

sudo -u www-data php /var/www/nextcloud/occ config:app:set files max_chunk_size --value 0

in case that /var/www/nextcloud is the root dir of your NC installation and www-data is your html-user

You can set this value back by setting a value e.g.

sudo -u www-data php /var/www/nextcloud/occ config:app:set files max_chunk_size --value 20971520

(means chunk-size of 20MB) (see admin manual)

I don’t recall all the specifics. I do believe one hurdle was related to anonymous users lacking home directories to track the file chunks in, which makes it very different than logged in users.

The Vue migration (i.e. in v28) being basically completed should help. This stuff was all re-visited as a result of that (since the uploader had to be rebuilt).

A quick update was posted today on the original enhancement request actually it looks like: Allow chunked public upload · Issue #4109 · nextcloud/server · GitHub

You need to share more details about your environment. Also, what exactly happens? You keep saying basically “it doesn’t work”. But what is the behavior precisely?

Also, what appears in your Nextcloud log during these upload transactions?

Also, checking your web browser inspector during uploads will be extremely helpful. Particularly the Console tab and the Network tab to monitor each transaction.

There are numerous variables when it comes to transferring files (temp folders, home directories, web server config parameters, chunking config, etc.)

We need info to help you out. :slight_smile:

I do not have access to either server nor PHP settings …

  1. Uploading if not logged in
    I can see in the console that the payload is too large - that is in Chrome.

In firefox there is nothing in console but in Network tab I can see the Response to PUT http request was “413 Request Entity Too Large”.

So it would help if not logged in use can use chunking too.

  1. uploading when logged in. The issue was that I had on my Windows 11 turned on Network connectivity in Standby and it takes hours to upload huge file on my network. So I left comp and it got disconnected. I was able to upload 7GB file. I guess I would be able to upload even larger.

Thank you
Radek