How do I upload files bigger than 2MB / How can I increase the upload file size limit?


#1

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

true

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): /etc/php5/apache2/php.ini
Ubuntu (with php-fpm - for example with nginx or lighttpd): /etc/php5/fpm/php.ini
Windows (with XAMPP): install_path\xampp\php\php.ini - eg c:\xampp\php\php.ini

Please see this page for instructions on optimising PHP for >2MB uploads:
http://www.radinks.com/upload/config.php

You’ll need to change at least:

upload_max_filesize
post_max_size
memory_limit
max_execution_time

You many also need to adjust:

max_input_time

Be very careful with the units you choose. For example you might set:

upload_max_filesize=100M
post_max_size=100M
memory_limit=120M
max_execution_time=500

See also the PHP core documentation here:
http://php.net/manual/en/ini.core.php#ini.upload-max-filesize
http://php.net/manual/en/ini.core.php#ini.post-max-size
http://php.net/manual/en/ini.core.php#ini.memory-limit
http://php.net/manual/en/info.configuration.php#ini.max-execution-time

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:
http://ajaxuploader.com/large-file-upload-iis-asp-net.htm

Notes for nginx users:
nginx also limits the maximum upload filesize in the

client_max_body_size
client_body_timeout

variables in the nginx configuration file. See the nginx manual for details,
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

Notes for FastCGI users:
It’s also necessary to edit the MaxRequestLen and/or fgcidmaxrequestlen parameters in your FastCGI configuration. See the follow article for more information.


Can't upload videos
How to increase Library Size in xibo 1.7.3
Media upload - syntaxerror
Issues setting up CMS
Xibo client wont download any content from CMS
My video file are 60-70
Error when uploading
File upload Error 2 (Import CSV to Dataset)
File upload Error 2 (Import CSV to Dataset)
Problem importing a layout (Xibo 1.8.0)
Video file upload
Xibo CMS Post-Installation Setup Guide - 1.7 Series
PHP maxsize upload 32M
Xibo Checklist for CMS Installation
Display won't Log In - Xibo Player Option problems
Xibo Web Page having many errors
Cannot upload file bigger than 100MB? Error True
Resource Temporarily Unavaible
Gets stuck uploading larger content
When I'm trying to upload any videos to library , I'm facing " error not found "
Syntax error unexpected token
Upload HD videos
Failed to write file to disk
Video file larger than 128mb
SyntaxError: JSON Parse error: Unexpected EOF
PPT is not playing
Upload video 600Mb
Cannot upload image/video to the library, file is too small
Installation of XIBO on Turnkey LAMP on VM machine
Can't upload files bigger than 2MB
Ubuntu 14 install not woking
Json error "SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 166 of the JSON data"
Display not responding
Error "Request Entity Too Large" uploading video
Uploading video gives "Not Found" error
Error "true" after Upload
Autoplay embed youtube xibo android app not working
New error - Retrieve Remote Resource
Video file larger than 128mb
Cant upload images to xibo cms
Cant upload images to xibo cms
Media File uploading time Chrome browser stuck
Import Layout xibo 1.8.2
Problem with downloading from CMS Media Library
Uploading a file larger than 500K
Error when upload file media and Library view page
Internal Server Error
Mp4 Video on Windows Client
Forbidden when upload a video
Upload video - unknown error
Uploading media files separately from Xibo CMS
Unable to upload images
#2

Your client is not of the correct version
Schedule not possible in Xibo 1.8.5
Unknown error During Video Upload
Video Loop for PowerPoint video
“Display is out of date but has not yet checked in with the server”