[SOLVED] Uppercase image filenames not usable by custom plugin

More
8 years 1 month ago - 8 years 1 month ago #64855 by iamrobert
Hi ggppdk,

Since this update - my clients have begun to notice that if the filename has uppercase in it - it fails to render.

Eg John_Banner.jpg - phpthumb is disabled

If I rename it to:

john_banner.jpg - the file uploads works fine.

I have attached the phpThumb.php.txt and the file I am having an issue with.

FLEXIcontent Version:
Latest version: 3.1.1
Installed Version: 3.1.1 Release date: 2016-10-31
Installed Version 3.1.2-dev Release date: 2016-11-01

Any ideas of how to fix the issue?
Attachments:
Last edit: 8 years 1 month ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago - 8 years 1 month ago #64856 by ggppdk
Hello

maybe the had uploaded the files with v3.1.0 ?

does it happen with files uploaded with v3.1.1 ?

-- also where exactly are you uploading ?
file manager ?
item form image field in "folder mode" ?
item form image field in "DB mode" ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 1 month ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago - 8 years 1 month ago #64857 by iamrobert
Hi ggppdk,

Sorry - the default image thumb is working.

I just remembered - its our own FLEXIcontent plugin linking to phpthumb. Its based on hugegallery. As, I have been using it for over 6 years and forgot its not part of FLEXIcontent.

However - it was working up until about a week ago - with this version I believe:

Latest version: 3.1.1
Installed Version: 3.1.1 Release date: 2016-10-31
Installed Version 3.1.1-dev Release date: 2016-10-23

However - on further investigation upgrading to the newest version of flexicontent works on localhost - but not my actual webserver.
Last edit: 8 years 1 month ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago - 8 years 1 month ago #64858 by ggppdk
Hello
here is an explanation:

the filemanager / fileselement upload task and helper upload code
- will language-transliterate known characters to english (according to Joomla language files of each language)

Transliteration will also forces lowercase filenames !!

i think you plugin does not consider the above,

about EXISTING filenames of image,
- these are not tampered, if they had been uploaded as Uppercase they remain as they were

how does your plugin get the final "safe" filename of the uploaded file ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 1 month ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #64861 by iamrobert
Thanks - that worked:
Code:
thumb.src = '" . $client . "components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=../../../..'+ strtolower(file)+'&w=80&h=80&zc=1';

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.647 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline