News:

Looking for documentation? Take a look on our wiki

Main Menu

Multi-upload does not accept .jpeg files, only .jpg

Started by andrai2, November 10, 2025, 21:07:39 PM

Previous topic - Next topic

andrai2

Hello VirtueMart community,

I'm running Joomla + VirtueMart and noticed an issue with multi-image upload:

I can upload .jpg files without problems.

I cannot upload .jpeg files in multi-upload mode — VirtueMart or Server rejects them.

Single-file upload works fine for .jpeg.

To replicate the behavior i need uplou jpeg image via multiple upload (please see the image)

i get error message: foto1.jpeg is not allowed. Allowed extensions: gif,jpg,png,wbmp,webp,doc,pdf,zip, i need confirm that is not Virtuemart but server issue

When checking VirtueMart's media info, I see the message:

The server supports mime type recognition
Supported filetypes for thumbnail creation GIF, JPG, PNG, WBMP, WEBP

as i understand i need ad JPEG there


From what I understand:


The server's PHP GD extension seems to not have JPEG support enabled, which prevents VirtueMart from creating thumbnails for .jpeg.

I want to confirm:

Is this behavior expected in VirtueMart multi-upload?

Can enabling JPEG support in PHP GD fully resolve this issue so .jpeg files work like .jpg?

Are there any other configuration settings in VirtueMart that could cause .jpeg rejection?

My setup:

Joomla version: 5.2

VirtueMart version: 4.4

PHP version: 8.2

GD extension: enabled,

I asked server to "enable jpeg" in gd, but want to confirm it is server issue not virtuemart issue

Any advice or confirmation would be appreciated.

Thank you!

Ghost

Nothing to do with GD. jpeg and jpg files are exactly the same - JPEG images. You can rename your jpeg files to use jpg extension and they'll work just fine. But any code handling JPEG images should handle both extensions so this should be fixed in VM. in sublayouts/image_upload.php file try adding jpeg to this list:

allowedTypes:'gif,jpg,png,wbmp,webp,svg,doc,pdf,zip',

iWim

Check in Joomla's Media options if jpeg is listed in Allowed extension and Legal Image Extensions (File types).

andrai2

Thansk for answers!

So to reproduce the error "we need" to drag and drop JPEG file (not jpg) to multi image uploud plugin

than we get the error: 2025-11-11 at 20.04.30(1).jpeg is not allowed. Allowed extensions: gif,jpg,png,wbmp,webp,doc,pdf,zip - error is celar to understand but how to fix it....is it Virtuemart bug...or am i tripin...

The thing is that i can upload JPEG file from single upload in Virtuemart and in Joomla media, but not in Multiple image upload box

in joomla medai configuration jpeg is checked

p.s. the partical thing is that one off my clients make photos via whatsapp and than upload via multiple images in product catalog






Milbo

Hello Andrai2,

I think jpeg is just missing in the list of allowed files in the js of multiupload. So Ghost gave the right tip. Hahah, I just thought, what he is talking about sublayouts? There is no backend stuff in FE sublayouts, but in fact the new admin template has one.

so just go to /administrator/templates/vmadmin/html/com_virtuemart/sublayouts/image_upload.php to line 142. You should see there the allowedTypes. Just add jpeg, or take the line below:
allowedTypes:'gif,jpg,jpeg,png,wbmp,webp,svg,doc,pdf,zip',

and of course, thank you for the bug report, one bug less (I fixed it of course directly in my files).
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/