File Manager does not work

Permalink Browser Info Environment
When you click on a file manager I vyberaem picture and gives me an error message "You must select an image file only"

1 Attachment

Type: Pre-Sale
Status: In Progress
yurec
View Replies:
sebastienj replied on at Permalink Reply
sebastienj
Because the file-manager inform that file is not recognized as a image. Wich type of file is ?
yurec replied on at Permalink Reply
yurec
file Type png, jpg
yurec replied on at Permalink Reply
yurec
ConcreteFileManager.launchDialog(function (data) {
// data : Object {fID: "1"}
$.get(getFileDetailDetailJson,{fID:data.fID}, function(file) {
if(file.type == "Image"){
jQuery.fn.dialog.hideLoader();
fillTemplate(file,Launcher);
// On ajoute un nouvel element vide a coté
fillTemplate();
return;
} ;
jQuery.fn.dialog.hideLoader();
alert('You must select an image file only'




a problem due to the fact that the variable "Image" is transferred "Изображения"
yurec replied on at Permalink Reply
yurec
if you do it like this


var attachFileManagerLaunch = function($obj) {

$obj.find('.add-file').click(function(event){
event.preventDefault();
var Launcher = $obj;
ConcreteFileManager.launchDialog(function (data) {
// data : Object {fID: "1"}
$.get(getFileDetailDetailJson,{fID:data.fID}, function(file) {
if(file.generic_type == '1'){
jQuery.fn.dialog.hideLoader();
fillTemplate(file,Launcher);
// On ajoute un nouvel element vide a coté
fillTemplate();
return;
} ;
jQuery.fn.dialog.hideLoader();
alert('You must select an image file only')

},'json');
});
});
}

everything works ok
yurec replied on at Permalink Reply
yurec
if(file.type == "Image")
variable "Image" should not be translated

I have a multilingual website, because this translates "Image"
sebastienj replied on at Permalink Reply
sebastienj
did you see a thumbnail in the filemanager ?
yurec replied on at Permalink Reply
yurec
file manager I go to the directory with pictures, but when I select picture, I immediately throws an error "You must select an image file only"
yurec replied on at Permalink Reply 3 Attachments
yurec
the screens in steps:
yurec replied on at Permalink Reply
yurec
"did you see a thumbnail in the filemanager ?" yes
sebastienj replied on at Permalink Reply
sebastienj
Which version of C5 are u using ?
yurec replied on at Permalink Reply
yurec
C5 version 5.7.4.2
sebastienj replied on at Permalink Reply
sebastienj
Thanks a lot for the tips !

concrete5 Environment Information

When you click on a file manager I vyberaem picture and gives me an error message "You must select an image file only"

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.