Fixes mm-1912 move get file info into its own web service call

Этот коммит содержится в:
=Corey Hulen
2015-08-24 15:03:52 -07:00
родитель 930488f002
Коммит 64b179ab0e
7 изменённых файлов: 131 добавлений и 35 удалений

Просмотреть файл

@@ -831,6 +831,20 @@ module.exports.uploadFile = function(formData, success, error) {
return request;
};
module.exports.getFileInfo = function(filename, success, error) {
$.ajax({
url: '/api/v1/files/get_info' + filename,
dataType: 'json',
contentType: 'application/json',
type: 'GET',
success: success,
error: function onError(xhr, status, err) {
var e = handleError('getFileInfo', xhr, status, err);
error(e);
}
});
};
module.exports.getPublicLink = function(data, success, error) {
$.ajax({
url: '/api/v1/files/get_public_link',