fix skynet links
This commit is contained in:
@@ -99,7 +99,7 @@ UploadManager.prototype.uploadThread = function() {
|
||||
console.debug("Starting upload of " + job.name);
|
||||
|
||||
let form = new FormData();
|
||||
form.append('file', job.file);
|
||||
form.append('file', job.file, job.name);
|
||||
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", this.uploadEndpoint, true);
|
||||
|
@@ -243,8 +243,8 @@ function fileFromAPIResp(resp) {
|
||||
function fileFromSkyNet(resp) {
|
||||
let file = fileFromAPIResp(resp)
|
||||
file.icon_href = "/res/img/mime/empty.png"
|
||||
file.get_href = "https://sky.pixeldrain.com/"+resp.id
|
||||
file.download_href = "https://sky.pixeldrain.com/"+resp.id+"?attachment=1"
|
||||
file.get_href = "https://sky.pixeldrain.com/file/"+resp.id
|
||||
file.download_href = "https://sky.pixeldrain.com/file/"+resp.id+"?attachment=1"
|
||||
file.availability_href = ""
|
||||
file.view_href = ""
|
||||
file.timeseries_href = ""
|
||||
|
Reference in New Issue
Block a user