It was decided to increase the maxLength attribute on the text fields to 1000,000 chars. The error message string: "rule.maxlength.maxlength" in pieforms.php was updated to read: "This field must be at most %d characters long. Please revise it or try splitting this over multiple instances." and '1' was added to the string so it gets picked up as revised for language translation.
I was using this base-64 image encoder which may be useful for testing: https://www.base64-image.de/ -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1742590 Title: Text/Note/Annotation Maxlength rule is unnecessary Status in Mahara: In Progress Bug description: Mahara: 17.10.1 OS: Ubuntu 16.04 DB: Postgres Browser: FF When inserting a base-64 encoded image into a comment on a form, the user is presented with the following error: 'This field must be 8192 characters long.' This rule validation is not really required because the DB field that it inserting into is a 'Text' type. Which basically means it's almost unlimited. Postgres 7.1+ does have an upper limit at 1 Gb for a Text field. Mahara supports Postgres 9+. I do think it's safe to remove the maxlength rule for the Text, Note and Annoation fields. Please let me know your thoughts. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1742590/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : firstname.lastname@example.org Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp