Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
fileTypeExts : "*.jpg;*.jpeg;*.png;*.gif;*.bmp",
fileTypeExts : "*.gif",
/**
* valid_mime
* Returns TRUE if the mimetype is suported
*
* @param string
* @return boolean
*/
private function valid_mime($mime)
{
return preg_match("@image/(gif|pjpeg|jpeg|png|x-png|bmp|x-ms-bmp)$@", $mime);
}
/**
* valid_mime
* Returns TRUE if the mimetype is suported
*
* @param string
* @return boolean
*/
private function valid_mime($mime)
{
return preg_match("@image/(gif)$@", $mime);
}
/**
* Returns the url.matches (multiple)
*/
String.prototype.match_image_urls = function() {
return this.match(/\b(?:ftp|https?):\/\/(?:[-\w])+([-\w\.])*\.[a-z]{2,6}(?:\/[^\/#\?]+)+\.(?:jpe?g|gif|png|bmp)\b/gim);
};
/**
* Returns the url.matches (multiple)
*/
String.prototype.match_image_urls = function() {
return this.match(/\b(?:ftp|https?):\/\/(?:[-\w])+([-\w\.])*\.[a-z]{2,6}(?:\/[^\/#\?]+)+\.(?:gif)\b/gim);
};
How do I fix that?