[Plugin: Add Local Avatar] Plugin is only working with lowercase ‘jpg’ files
-
I have installed the 6.6 version of the plugin and it is cropping the user uploaded image fine as long as the file extension is in lowercase.
for example if a use uploads the image file: “image.jpg” and the resize option is “on” the image uploads and creates the “image-avatar.jpg” file and it can be displayed on the page.
However if the person uploads the file: “image.JPG” and the resize option is “on” the image uploads and creates the “image-avatar.jpg” but when you look at the current user avatar it iappears to be broken (when inspected it is looking for “image.jpg.JPG“)
I tried removing the:
. ‘.’ . $parts[‘extension’];
in
$file = basename($resized_file, ‘.’ . $parts[‘extension’]) . ‘.’ . $parts[‘extension’];
Once I did this I was able to upload the uppercase “image.JPG” and it worked fine, but when I uploaded a lowercase “image.jpg” itreturned broken and when I inspected it removed the file extension altogether “image”
Any ideas? already tried adding the MIME TYPE – no success.
https://www.ads-software.com/extend/plugins/add-local-avatar/
- The topic ‘[Plugin: Add Local Avatar] Plugin is only working with lowercase ‘jpg’ files’ is closed to new replies.