Problem with upload::processed

See all posts Reply

Problem with upload::processed new!
by G.Azamat, 9 years, 10 months ago
Hi!
Thanks for the wonderful upload class.
I have one problem, after creating object (before processing), flag upload->processed === TRUE.

In line 2602 (v.0.32) this code:
function upload($file, $lang = 'en_GB') {
...
$this->processed = true;
...

What was the reason?
I thought, that this flag should be TRUE only after calling upload->processe() method (according phpdoc).Reply
Re: Problem with upload::processed new!
by colin, 9 years, 10 months ago
You can change it. It is in fact the default value, which gets set to false if the upload fails.Reply
Re: Problem with upload::processed new!
by G.Azamat, 9 years, 10 months ago
thank you, I will do so.Reply