Reply to Impossible to stream local file

Impossible to stream local file new!
by diego, 10 years, 10 months ago
Hello,
I'm trying to direct stream an image from local path, but I receive an error.
According to documentation I use this code:

$images_name = '/path/to/my/image.jpg';
$handle = new upload($images_name);
header('Content-type: ' . $handle->file_src_mime);
echo $handle->Process();
die();

result of log is:

system information
- class version : 0.32
- operating system : Darwin
- PHP version : 5.4.4
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 32M (33554432 bytes)
- language : en_GB
source is a local file /path/to/my/image.jpg
- error: File not uploaded. Can't carry on a process.

What's wrong?

Thanks in advanceReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important