View Full Version : How to increase Ext.field.Password maximum value

10 Sep 2014, 9:38 AM
I have a creates a password input field like following:
xtype: 'passwordfield',
id: 'password',
label: 'Field',
name: 'j_password'

and use a reader to pass in the image data string

console.log(reader.result.length); 22,075,907 byte
console.log(passwordField._value.length); 524,288 byte

The passwordField.value can only hold up to 524KB data, I want it to hold all 22MB data. Is there any way I can increase passwordField.value's maximum size?


11 Sep 2014, 2:37 PM
OK, I will bite .. why do you need a password field to hold that much data?

17 Sep 2014, 12:20 PM
I'm wondering the same thing as Scott, but regardless of what the answer is, you're going to need to find another way to accomplish what you want. The limit you're running into is very likely imposed by the browser you're using, not ExtJS. You can see a discussion of various size-related issues with HTML fields in this question (http://stackoverflow.com/questions/1752768/is-there-a-max-size-to-the-length-of-a-hidden-input-in-html). And even if one browser supports input data of this size, that's no guarantee that any others will. Not to mention server limitations also if you end up submitting this value to a backend. All in all, it's a recipe for headaches in multiple places.

As a side note, it's interesting that the limit 524288 is exactly equal to 2^19 ... which would again seem to point to a hard limit of some kind?