Why this happend?

See all posts Reply

Why this happend? new!
by Alex, 9 years, 8 months ago
Hello!

Your upload.class is amazing.

But for what reason this happens?
$upload = new Upload($_FILES['photos']);
var_dump($_FILES['photos']); // It is all filedata here. All ok!
var_dump($upload->uploaded); // null

I am working at localhost WAMP-server Open Server (Windows)Reply
Re: Why this happend? new!
by Alex, 9 years, 8 months ago
Tried this code on production (Ubuntu) server. Same problem! Php 5.4.Reply
Re: Why this happend? new!
by Alex, 9 years, 8 months ago
Ok, I have localized the problem.

If I use require_once — it works. But I am using MVC Laravel 4 framework and I want to use it's autoload feature. When I am trying autoload — there is NULL. T_TReply
Re: Why this happend? new!
by colin, 9 years, 8 months ago
I am not sure what is the problem. Did you check the log produced by the class? Do you have error reporting turned on on your server?Reply
Re: Why this happend? new!
by Alex, 9 years, 8 months ago
Hello.

>>log produced by the class
Is empty.

>>error reporting turned on
Yes.

Probably it is my problem (not the class problem), but I couldn't resolve it. Now I am using Intervention Image Class. No problems with Laravel and easy installation via Composer. Perhaps you could modify class.upload.php to work Laravel-Way?

Best regards!Reply