News:

Looking for documentation? Take a look on our wiki

Main Menu

3.0.6.2 - File extention Uppercase - 404

Started by dazzafact, April 30, 2015, 10:29:31 AM

Previous topic - Next topic

dazzafact

I have a Product with Uppercase Image extention "file_url" (JPG) (uploaded manuel). The image will not be shown in der Shop.
I fixed that in the file -/helpers/image.php Line 62 (function displayMediaFull);
It was creating me a lowercase file_extension $string

$this->file_extension=preg_replace('#^.*\.([A-z]+)$#is','$1',$this->file_url);

Digi-web

Can you give more info where exactly (in which line) you did the change?
So if you upload an uppercase .jpg it is not uploaded correctly right? and with the fix this is corrected?
Custom Joomla - Virtuemart Development and Templates
Website: http://www.digi-web.gr

dazzafact

I dont know, but its for manuell uploadet and linked images. I think the automatic uploadet process in the backend will change Uppercase file extension to lower.

Milbo

So you upload an image with .JPG, which is renamed on the server to .jpg, right.

So the question is, why you have JPG in the database.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

ahh, you uploaded it manually, and you did not use the synchronisation or upload function, okey. Then this can happen, yes. But how you got the wrong entry in the media table?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

dazzafact

#5
It was created by a batched import.
Anyway, the "file_url" is still linked correct to the image.

But it override me the extention to lowercase (jpg) in frontend