Other symptoms include an error when uploading files:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
or simply the message
Xibo does not limit file upload size - but PHP does. You need to edit your php.ini file for your system to support large file uploads.
By default, the php.ini file is in the following locations:
Ubuntu (with Apache):
Ubuntu (with php-fpm - for example with nginx or lighttpd):
Windows (with XAMPP):
install_path\xampp\php\php.ini - eg
Please see this page for instructions on optimising PHP for >2MB uploads:
You’ll need to change at least:
You many also need to adjust:
Be very careful with the units you choose. For example you might set:
See also the PHP core documentation here:
Once you’ve changed the php.ini file, you must restart your webserver (ie Apache) service before the changes will be picked up. If you’re using fastcgi/php-fpm to run PHP as a separate process then you’ll need to restart that rather than your web server.
Notes for IIS users:
IIS may also limit the file sizing for upload. This can be checked/changed in the “Request Filtering” section of IIS Manager.
The following documentation may be helpful to you:
Notes for nginx users:
nginx also limits the maximum upload filesize in the
variables in the nginx configuration file. See the nginx manual for details,
Notes for FastCGI users:
It’s also necessary to edit the
fgcidmaxrequestlen parameters in your FastCGI configuration. See the follow article for more information.