Home › Forums › General Issues › Limit on amount of data in text field? › Reply To: Limit on amount of data in text field?
Both usermeta.meta_value
and postmeta.meta_value
are stored as LONGTEXT. Here’s how the MySQL docs describe the size of a LONGTEXT data type:
“A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters. The effective maximum length is less if the value contains multi-byte characters. The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory.
HOWEVER, ACF fields are stored by passing these values by $_POST to the server, so you might be getting hit on PHP’s post_max_size
limit. This can be updated in a few different places:
php.ini:
post_max_size=20M
upload_max_filesize=20M
.htaccess:
php_value post_max_size 20M
php_value upload_max_filesize 20M
It might be worth trying some larger values on those variables and testing submissions of different lengths.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.