Появляется ошибка "Server response came not in JSON format"

проблема в файле js/ocupload.js строка 33

решение заменить код

Drupal.ocupload.checkResponse = function (response) {
    return $.trim(response.substring(0, 1)) == '{';
}; 

на

Drupal.ocupload.checkResponse = function (response) { 
    return $.trim(response).substring(0, 1) == '{';
};

Comments

scger created an issue. See original summary.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

phuocdv’s picture

Thanks you very much
The code runs very well