Hi Mamba,
Quote:
Mamba wrote:
Go to the file /extgallery/photoUploader.php
Took me a while but I worked out that you meant /extgallery/class/photoUploader.php
Your fix works perfectly for .jpeg
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
but now .jpg has the error
I reverted back to the original file and back to where I was in the beginning and tried to do a batch upload with a .jpg and a .jpeg together and they both worked fine with no issues.
I'm thinking we're almost there
If I look in my local photo folder on my PC I notice that both .jpg and .jpeg files are associated (by the file type column) as JPEG file types. I think this is why if we change the code from
IMAGETYPE_JPEG => 'jpg',
to
IMAGETYPE_JPEG => 'jpeg', IMAGETYPE_JPG => 'jpg',
the .jpeg worked and .jpg failed. Because the server is looking for
IMAGETYPE_JPEG =>
So, I tried
IMAGETYPE_JPEG => 'jpeg', IMAGETYPE_JPEG => 'jpg',
and
IMAGETYPE_JPEG => 'jpeg','jpg',
these all failed.
What I did find was that no matter what combination I had, if this
IMAGETYPE_JPEG => 'jpeg',
is in there the .jpeg will always work and the .jpg will always fail. The only time .jpg works is with
IMAGETYPE_JPEG => 'jpg',
So I thought to go back to basics and try
IMAGETYPE_JPG => 'jpg',
and neither .jpg or .jpeg worked they both failed.
Of course I'm only guessing. But thought I should pass on my 4 hour attempt at trouble shooting if not for any other reason than to give you guys a laugh
So...on with the show!! What else can we do??
Marty.