Reply to Re: Can't display local file

Re: Can't display local file new!
by colin, 14 years, 8 months ago
The upload object looks fine.

It seems that you have a problem of headers. Check what headers are being sent to Firefox (you can use LiveHTTPHeaders for that).

You can also try to first output an image to the browser without using the class itself. Code such as (here with PNG images):
header('Content-type: image/png');
readfile($my_png_file);

or
header('Content-Length: '.filesize($my_png_file));
header('Content-Type: image/png');
print file_get_contents($my_png_file);
Reply

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