Rate this article
0
Browsing: Home » FAQ & Knowledgebase

I have problems when uploading big files

Q: When I try to upload a big file I get following error: "Upload failed". What should I do?

A: In Vivvo CMS the maximum size of an uploaded file is set in {VIVVO_ROOT}/lib/framework/vivvo_file.php, around line 34 that looks like this:

 

define ('VIVVO_MAX_UPLOAD_FILE_SIZE', 100 * 1024 * 1024);

 

(in this example the value is 100*1024*1024 = 100Mbytes)

If you wish to upload files larger than this value, you need to increase this value.

Also you need to check that your web server allows you to upload files of the desired size. Following php variables in php.ini file on your webserver determine the maximum upload file size:

  1. upload_max_filesize
  2. post_max_size
  3. memory_limit

upload_max_filesize variable (which needs to be larger or equal to VIVVO_MAX_UPLOAD_FILE_SIZE) needs to be smaller than post_max_size variable. If memory_limit is enabled, it should be larger than post_max_size.

If you do not have permissions to change php.ini file you should ask your server administrator do to that for you.