Skip to content
Contact us

Maximum file size

SMART Migration sets no limit on the size of a file. It reads every file of the size its source allows — SharePoint Online, OneDrive, SharePoint on-premises and file shares — and writes it to Nextcloud. A file is migrated when the source can deliver it and the Nextcloud server accepts it, so the limit that counts is almost always the Nextcloud server's.

Check the Nextcloud server before the first large file

Nextcloud's own defaults suit everyday files, not a migration of files of many gigabytes. A file the server refuses is recorded as an issue on the File Issues tab of the app. Set the limits below and migrate one large file as a test before the large waves.

WhereThe largest file
SharePoint Online and OneDrive250 GB per file, Microsoft's limit. SMART Migration reads files up to that size. See SharePoint limits
SharePoint on-premisesSet by the farm's administrator, so a file in it is already within the limit.
File shareWhat the file system holds. SMART Migration adds no limit
SMART Migration and the appNone of their own. The optional To Size filter leaves larger files out when you choose it
The Nextcloud serverSet by its PHP, web server and any proxy or firewall in front of it, and by the free space and the quota of the destination. See What to set on the Nextcloud server

Nextcloud's default limit for an upload is 512 MB. It can be raised as far as the file system and the operating system allow. These are the settings that decide it:

SettingWhat it does
upload_max_filesize and post_max_size (PHP)The largest upload through PHP. Raise both to more than your largest file. Nextcloud's own example uses 16 GB
upload_tmp_dir (PHP)Where an upload waits while it is received. It needs room for the largest file, and for the files being written at the same time
client_max_body_size (nginx), LimitRequestBody (Apache)The web server's own limit on the size of a request. Raise it with PHP's, or the web server refuses the file first
A proxy, firewall or CDN in front of NextcloudMany cap a request. Cloudflare, for one, may cap an upload at 100 MiB. Check every device between the SMART Migration server and Nextcloud
max_execution_time and max_input_time (PHP) and the web server's timeoutsA large file takes minutes to arrive. Too short a time cuts it off partway
files.chunked_upload.max_size in config.phpThe size of each piece in a chunked upload. The default is 100 MiB; up to 5 pieces upload at the same time. PHP's upload limits do not apply to chunked uploads: the web server's and PHP's timeouts limit them instead
Free space and quotasThe destination needs room for the file and its versions. The quota of the user or the Team Folder must allow it

Rules a Nextcloud administrator puts in place can limit more than that, as the next section describes. Read the details in Nextcloud's own guide: Uploading big files > 512MB. See also Size the servers for a large migration.

A Nextcloud server can have rules of its own, put in place by its administrator, that limit the size of a file and the types of file it accepts. SMART Migration does not change or get around them. The usual ones:

RuleWhat it does
The Files access control appBlocks a file by its size, its type (MIME type), its name, the user or group, and more. A rule that blocks .exe files, or files over a given size, stops those files from being written
forbidden_filenames and forbidden_filename_extensions in config.phpRefuse certain file names and endings for everyone, from Nextcloud 30. .htaccess is refused by default

When a file is larger than a rule allows, or is of a type the server refuses, the file is not migrated and an issue is recorded for it on the File Issues tab, with the reason the server gave, under the run and the source it came from. The rest of the run goes on. See File Issues

To migrate such a file, change the rule or raise the limit on the Nextcloud server, or agree with its owner that the file stays behind. Then run the job again. Ask the Nextcloud administrator for the rules before the first wave, so no issue comes as a surprise. See Files access control in Nextcloud's manual.

Run a Discovery job on the source before you migrate. The Power BI report shows the source by size, so you can see how many files are large, and how large the largest is, and set the Nextcloud server to match. See Discovery

To keep files over a size out of a job, set To Size on its Source step, in whole kilobytes: 2097152 leaves out files over 2 GB. See Choose which files a job takes