Skip to content

Commit 0e5aea7

Browse files
author
Igor Khomenko
committed
adde QB.data.fileUrl method
1 parent c3ec1d1 commit 0e5aea7

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed

js/modules/qbData.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ DataProxy.prototype = {
9797
callback(null, result);
9898
},
9999

100+
fileUrl: function(className, params) {
101+
var result = Utils.getUrl(config.urls.data, className + '/' + params.id + '/file');
102+
result += '?field_name=' + params.field_name + '&token=' + this.service.getSession().token;
103+
return result;
104+
},
105+
100106
deleteFile: function(className, params, callback) {
101107
Utils.QBLog('[DataProxy]', 'deleteFile', className, params);
102108

0 commit comments

Comments
 (0)