PDA

View Full Version : Image gallery problem


antonyhome
05-28-2004, 04:40 PM
Hi,

I try to use the image gallery module. But once I upload the jpg file, the filename extension cannot be saved (1. , tb_1. shown). I need to edit the filename in the database to correct it. And the jpg file cannot be uploaded too. I set the /image dir to be 777 already. But gif file can be uploaded. :eek:
What is the problem?? :confused:

Ziad
05-28-2004, 05:16 PM
Try uploading other jpg files and see if any of them work.

antonyhome
05-28-2004, 05:23 PM
I try some, all fail to do upload.

Ziad
05-28-2004, 05:34 PM
Have you every had any trouble uploading jpg images before?

antonyhome
05-28-2004, 06:43 PM
This is my first time to use your product. I am using the light product.
It is not a matter if cannot upload the file as I can upload it by my own. But it is quite troublesome to edit the database. Is it "setting.php" handle the image upload?
// List of our known photo types
$known_photo_types = array(
'image/pjpeg' => 'jpg',
'image/jpeg' => 'jpg',
'image/gif' => 'gif',
'image/bmp' => 'bmp',
'image/x-png' => 'png'
);
// GD Function List
$gd_function_suffix = array(
'image/pjpeg' => 'JPEG',
'image/jpeg' => 'JPEG',
'image/gif' => 'GIF',
'image/bmp' => 'WBMP',
'image/x-png' => 'PNG'
);
Are these scripts recognize the file type ?? any problme there ??

Ziad
05-28-2004, 06:53 PM
Why don't you post one of the images in this thread and I will try to recreate the problem.

antonyhome
05-29-2004, 05:36 AM
This is the image I want to upload

Ziad
05-29-2004, 07:26 PM
I tried uploading that file both with Subdreamer Pro and Light, and it seems to be working fine. You might want to contact your server and see what they have to say.

In the meantime, I'll look into the script a bit further.