Форумы / Cotonti / Bugs / Archive / PFS Upload Problem (-1 filesize)

urlkiller
#1 11.03.2009 16:40
at pfs.php while uploading a file.

the problem is that the filesize isnt setup correctly.
it always enters -1 as filesize at the group editing field: admin.php?m=users&n=edit
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
dervan
#2 11.03.2009 18:20
sorry, my mistake

this bug is fixed in r614 ( Ticket #240 )
urlkiller
#3 11.03.2009 18:22
kk,

r614 isnt public, is it?
just asking because i wanted to do a remake for cotonti of my usergal plug...
i would need the pfs upload ...
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
dervan
#4 11.03.2009 18:27
please find function sed_get_uploadmax() in system/functions.php, and replace
		$val_a[] = isset($opt_a[$opt]) ? $val * $opt_a[$opt] : (int)$val;
with code
		$val = isset($opt_a[$opt]) ? $val * $opt_a[$opt] : (int)$val;
		if ($val > 0)
		{
			$val_a[] = $val;
		}
[/][/]
urlkiller
#5 11.03.2009 18:54
kk thanky
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
biro
#6 12.03.2009 01:15
this bug is in which version?
Be sure to check out<br /><br /><br />
My site-<a href="http://www.iso-center.co.cc">http://www.iso-center.co.cc</a><br />
My plugins;TPL Editior 1.2 &amp; Mobile site
dervan
#7 12.03.2009 05:18
this bug was introduced to Cotonti 0.0.3 with new function sed_get_uploadmax()
urlkiller
#8 12.03.2009 09:15
somewhere i read about something like a tpl autoinstall function someone wanted to develop. dont know if it was here or on neocrome.net. did you heard something about that here?
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>