Loading...
 

Why File Uploads May Fail


File uploads may fail from time to time, especially when uploading large files (>20MB). The following is a list of common settings and configurations that can be the cause:

PHP Memory Limit


Tiki loads the uploaded file into memory to do search indexing, typing, and sizing of the tiles. The memory_limit setting in PHP can be increased to prevent these steps from crashing your PHP process. You can see your current memory_limit with the tiki-phpinfo.php file (see PHPInfo). Try raising this setting to 512MB.

PHP Upload Max Filesize


TIki should tell you directly if you are trying to upload a file that exceeds the PHP configuration, but in case it does not, check the upload_max_filesize setting (PHPInfo). Increase this settings as is appropriate for your limits.

PHP Max Post Limit


If your file size exceeds the post_max_size variable, then PHP will strip all the POST data. Make sure that this setting is greater than upload_max_filesize.

Storing files in a MySQL database


Tiki can store its uploaded files in the database in a LONGBLOB field. Storing large amounts of data in a database row can be tricky and require some fine tuning of your database parameters. You may want to switch to local disk storage as a first option.

  1. Go to Settings -> Control Panel -> File Galleries
  2. Change Storage to "Store in Directory"
  3. Set the "Path to store files in the file gallery" field
  4. Click "Apply"


Image

You can also try to fix the problem with the database storage. If you are using database storage for large files and you are using MySQL's INNODB engine, you could be getting an error like "Row size too large". If so, try the following:

1. Add the following to the my.cnf file under mysqld section.

innodb_file_per_table
innodb_file_format = Barracuda


2. ALTER the table to use ROW_FORMAT=COMPRESSED.

ALTER TABLE nombre_tabla
    ENGINE=InnoDB
    ROW_FORMAT=COMPRESSED 
    KEY_BLOCK_SIZE=8;


Note: It is not recommended to store more files more than 100MB in a database


Page last modified on Sunday 18 August, 2019 14:21:08 GMT-0000

Attached files

ID Name Comment Uploaded Size Downloads
74 Screen Shot 2015-06-11 at 7.11.22 PM.png funkju 75.50 Kb 140

doc.tiki.org

Bootstrap AdminGuide UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Trackers
Transitions
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show PHP error messages