mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-24 03:47:53 +00:00
Added optional "filename" parameter to PUBLISH_QDN_RESOURCE
action.
This commit is contained in:
parent
2462f94efc
commit
58e7dee8a1
@ -544,6 +544,7 @@ class WebBrowser extends LitElement {
|
|||||||
const name = data.name;
|
const name = data.name;
|
||||||
let identifier = data.identifier;
|
let identifier = data.identifier;
|
||||||
const data64 = data.data64;
|
const data64 = data.data64;
|
||||||
|
const filename = data.filename;
|
||||||
if (data.identifier == null) {
|
if (data.identifier == null) {
|
||||||
identifier = 'default';
|
identifier = 'default';
|
||||||
}
|
}
|
||||||
@ -564,6 +565,7 @@ class WebBrowser extends LitElement {
|
|||||||
selectedAddress: this.selectedAddress,
|
selectedAddress: this.selectedAddress,
|
||||||
worker: worker,
|
worker: worker,
|
||||||
isBase64: true,
|
isBase64: true,
|
||||||
|
filename: filename,
|
||||||
apiVersion: 2,
|
apiVersion: 2,
|
||||||
withFee: res2.userData.isWithFee === true ? true: false
|
withFee: res2.userData.isWithFee === true ? true: false
|
||||||
});
|
});
|
||||||
|
@ -18,6 +18,7 @@ export const publishData = async ({
|
|||||||
selectedAddress,
|
selectedAddress,
|
||||||
worker,
|
worker,
|
||||||
isBase64,
|
isBase64,
|
||||||
|
filename,
|
||||||
metaData,
|
metaData,
|
||||||
apiVersion,
|
apiVersion,
|
||||||
withFee
|
withFee
|
||||||
@ -180,6 +181,10 @@ export const publishData = async ({
|
|||||||
uploadDataUrl = uploadDataUrl + '&fee=100000'
|
uploadDataUrl = uploadDataUrl + '&fee=100000'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(filename != null && filename != "undefined"){
|
||||||
|
uploadDataUrl = uploadDataUrl + '&filename=' + encodeURIComponent(filename)
|
||||||
|
}
|
||||||
|
|
||||||
let uploadDataRes = await parentEpml.request("apiCall", {
|
let uploadDataRes = await parentEpml.request("apiCall", {
|
||||||
type: "api",
|
type: "api",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user