class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I am using the upload class, but returns a notification of when we include the class in another file, below, could know how to solve? The file and submitted successfully, but returns these errors
Erro na Linha: 2889 :: finfo_open(C:\wamp\bin\php\php5.5.12extras\magic): failed to open stream: No such file or directory C:\wamp\www\folder\class.upload.php Erro na Linha: 2889 :: finfo_open(C:\wamp\bin\php\php5.5.12extras\magic): failed to open stream: No such file or directory C:\wamp\www\folder\class.upload.php Erro na Linha: 2889 :: finfo_open(): Failed to load magic database at 'C:\wamp\bin\php\php5.5.12extras\magic'. C:\wamp\www\folder\class.upload.php Erro na Linha: 2966 :: preg_match(): Compilation failed: invalid range in character class at offset 7 C:\wamp\www\folder\class.upload.php Erro na Linha: 3011 :: preg_match(): Compilation failed: invalid range in character class at offset 7 C:\wamp\www\folder\class.upload.phpReply
I am using the upload class, but returns a notification of when we include the class in another file, below, could know how to solve?
The file and submitted successfully, but returns these errors
Erro na Linha: 2889 :: finfo_open(C:\wamp\bin\php\php5.5.12extras\magic): failed to open stream: No such file or directory
C:\wamp\www\folder\class.upload.php
Erro na Linha: 2889 :: finfo_open(C:\wamp\bin\php\php5.5.12extras\magic): failed to open stream: No such file or directory
C:\wamp\www\folder\class.upload.php
Erro na Linha: 2889 :: finfo_open(): Failed to load magic database at 'C:\wamp\bin\php\php5.5.12extras\magic'.
C:\wamp\www\folder\class.upload.php
Erro na Linha: 2966 :: preg_match(): Compilation failed: invalid range in character class at offset 7
C:\wamp\www\folder\class.upload.php
Erro na Linha: 3011 :: preg_match(): Compilation failed: invalid range in character class at offset 7
C:\wamp\www\folder\class.upload.php
Please note that the class is not supported in Windows, although it has been reported to work fine.
You would tell me the correct configuration please? Or step bu step
Hugs