overte-JulianGro/script-archive/example/assetsExample.js
2016-08-15 09:28:26 -07:00

11 lines
307 B
JavaScript

var data = "this is some data";
var extension = "txt";
var uploadedFile;
Assets.uploadData(data, function (url) {
print("data uploaded to:" + url);
uploadedFile = url;
Assets.downloadData(url, function (data) {
print("data downloaded from:" + url + " the data is:" + data);
});
});