# |
Oct 22nd 2009, 05:21 |
dakota |
well, truncate the file name |
# |
Oct 22nd 2009, 05:20 |
ixopo |
thx 4 your help again |
# |
Oct 22nd 2009, 05:20 |
ixopo |
i have to find an other solution |
# |
Oct 22nd 2009, 05:19 |
ixopo |
so actually due to Design Reasons, which is stupid |
# |
Oct 22nd 2009, 05:19 |
ixopo |
file name is in the box |
# |
Oct 22nd 2009, 05:19 |
ixopo |
i made fancy little boxes in the CMS which you can Add with Ajax |
# |
Oct 22nd 2009, 05:18 |
dakota |
Still, why do you want to limit the length? |
# |
Oct 22nd 2009, 05:17 |
ixopo |
for me |
# |
Oct 22nd 2009, 05:17 |
ixopo |
-( |
# |
Oct 22nd 2009, 05:17 |
ixopo |
would have been the easiest way for men |
# |
Oct 22nd 2009, 05:17 |
dakota |
maximum it can be is 255 characters |
# |
Oct 22nd 2009, 05:17 |
dakota |
why do you want to limit the file name lenght? |
# |
Oct 22nd 2009, 05:16 |
dakota |
hence the 'array to string' error |
# |
Oct 22nd 2009, 05:16 |
dakota |
you are passing it a file array |
# |
Oct 22nd 2009, 05:16 |
ixopo |
? |
# |
Oct 22nd 2009, 05:16 |
ixopo |
i have to extract file name |
# |
Oct 22nd 2009, 05:16 |
dakota |
maxLength is for strings |
# |
Oct 22nd 2009, 05:15 |
ixopo |
lol |
# |
Oct 22nd 2009, 05:15 |
dakota |
ixopo: Its fairly obvious what the problem is |
# |
Oct 22nd 2009, 05:15 |
ixopo |
hmmm |
# |
Oct 22nd 2009, 05:15 |
ixopo |
hmm |
# |
Oct 22nd 2009, 05:15 |
swordz |
Actually, it's expectig text, and you're passing a file? |
# |
Oct 22nd 2009, 05:14 |
ixopo |
dakota u have any idea ? |
# |
Oct 22nd 2009, 05:14 |
ixopo |
-( |
# |
Oct 22nd 2009, 05:14 |
swordz |
OK, that was my best guess. |
# |
Oct 22nd 2009, 05:13 |
ixopo |
swordz i changed the name to testcase now http://bin.cakephp.org/view/301974892 still getting the same error Array to string conversion [CORE/cake/libs/validation.php, line 598] |
# |
Oct 22nd 2009, 05:10 |
swordz |
You need it to go 'I don't have that rule, lets check the conents of this array' |
# |
Oct 22nd 2009, 05:10 |
ixopo |
swordz http://bin.cakephp.org/view/1556117243 |
# |
Oct 22nd 2009, 05:10 |
swordz |
It's doing a foreach, getting to maxLength, going 'I have that rule' then doing it |
# |
Oct 22nd 2009, 05:10 |
swordz |
ixopo Try changing the name of the maxLength key in the file array |
# |
Oct 22nd 2009, 05:10 |
dakota |
stop watching movies :) |
# |
Oct 22nd 2009, 05:10 |
ixopo |
lol |
# |
Oct 22nd 2009, 05:09 |
dakota |
lol |
# |
Oct 22nd 2009, 05:09 |
Mike_MnD |
dakota: sorry for the question but don't knw why every time i see you righting i imagine Dakota Fanning :D |
# |
Oct 22nd 2009, 05:09 |
dakota |
^ I though that topic had been discussed at length already |
# |
Oct 22nd 2009, 05:09 |
ixopo |
i just wanted to add the MaxLength Rule |
# |
Oct 22nd 2009, 05:08 |
dakota |
Mike_MnD: Not the last time I checked |
# |
Oct 22nd 2009, 05:08 |
ixopo |
yes i use the MediaPlugin, but as i wrote all Other ValidationRules are working perfect |
# |
Oct 22nd 2009, 05:08 |
swordz |
Actually, just ignore me |
# |
Oct 22nd 2009, 05:08 |
Mike_MnD |
dakota are you female ? |
# |
Oct 22nd 2009, 05:08 |
swordz |
Or lots of them are |