OC HyperV Appliance - Cannot figure out how to set 16GB file upload

Please help us by providing the following info. Before posting please also check the pinned “Known issues” threads and make sure that you’re running the latest available version for your oC release: Changelog - ownCloud

Steps to reproduce

I lost the steps I took, so I think this is everything I’ve done…

  1. Download VHDX appliance from OC.
  2. Configure HyperV - 1Proc, 1GB RAM, Bridged network
  3. Boot OC HV instance, log into the terminal, complete OC server install.
  4. Within the CLI I do the following:
  • Sudo -i
  • cd /var/www/owncloud
  • nano .htaccess
  • I find and edit upload_max_filesize = 16G
  • I find and edit post_max_size = 16G save and exit the file
  • sudo nano /etc/php5/apache2/php.ini
  •  In php.ini find and modify to this
    
  • upload_tmp_dir = /var/www/owncloud/data/upload-tmp
    
  • upload_max_filesize = 16G
  • mkdir /var/www/owncloud/data/upload-tmp
  • chown -R www-data:www-data /var/www/owncloud/data/upload-tmp
  • service apache2 restart

Expected behaviour
I hope to be able to upload files of upto 16GB via the web.

Actual behaviour
File acts like it is uploading, but then gives error failed to write to disk.

Server configuration
Operating system: Ubuntu 14.04 using OC’s HyperV appliance
Web server: Apache
Database:
PHP version:
ownCloud version (see ownCloud admin page): 9.1.2
Updated from an older ownCloud or fresh install: No
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see How to find webserver or OC logfile / enable php logfile for more info

Integrity status for oC9+

No errors have been found.

You can also change these two in you php.ini. Do you use a 32-bit system? 32-bit php can’t handle large uploads (>2 gb).

Thanks for the reply - sorry for the delay in my response.

The HyperV appliance is 64bit.

Rather than changing settings outside of OC, I’d rather change what is necessary just within OC. This can be done, and as I stated above, it acts like it should be uploading, but at the end of the upload, it fails. If it were configured to not accept files over 2gb, it would not even begin the file transfer process.

Some parameters can only be set in your webserver of php config (or you can even disallow scripts to change such limits themselves):

If you think the default configuration of the VM could be improved, you can suggest changes on GitHub · Where software is built