Problem/Motivation

Images with uppercase extensions (e.g. image.JPG) are not available to use in the Canto browser.

Steps to reproduce

I don't know why some images are uploaded with uppercase extensions, but if they are, try setting up the canto module and you won't find those images to choose.

Proposed resolution

The bug appears to be with the main.js provided by canto, but should be an easy fix.

Additionally, the validation in Drupal needs changing to have strtolower on the extension.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

rob230 created an issue. See original summary.

rob230’s picture

This change allows the images to be found.

rob230’s picture

For the CantoBrowser widget I think it needs this line changing:

$typSupported = in_array($info['extension'], $supportedExtensions);

Change to:

$typSupported = in_array(strtolower($info['extension']), $supportedExtensions);

Sorry I didn't make a patch for this.