Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Is there a default character limit for the textarea field?


Reply


3 Posts   3997 Views

Avatar
AlaVive

Community Member, 42 Posts

11 September 2009 at 7:55am

Edited: 11/09/2009 7:56am

I'm using the filedataobjectmanager to upload PDF files, add a title (text field), description (textarea field), and keywords (textarea field). For the keywords portion, I was asked if there is a limit to the number of keywords that can be added, since some of the PDFs may be keyworded with up to almost 2,000 characters. I said there isn't a limit, but I need to see if anyone can confirm that.

Thanks!

Avatar
Willr

Forum Moderator, 5513 Posts

11 September 2009 at 2:57pm

I am pretty sure the max size you can use in a Text database field is about 4MB of Text. You can do the translation into how many characters 4mb is but its quite a few :).

If it actually uses a Varchar field in the DB to store it then it has a 255 char limit.

Avatar
AlaVive

Community Member, 42 Posts

15 September 2009 at 10:50am

Thanks, willr! You saved me again.