mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Add HTTPS support for file upload/download
This commit is contained in:
parent
705e7d717b
commit
9f15dc9922
@ -282,7 +282,7 @@ function validateFileTransferParameters(payload) {
|
||||
returnVal = "Please enter File URL";
|
||||
} else if (!payload.upload && !payload.fileURL) {
|
||||
returnVal = "Please enter the URL to upload file from device";
|
||||
} else if (protocol === "HTTP" && !(payload.fileURL).startsWith("http:")) {
|
||||
} else if (protocol === "HTTP" && !(payload.fileURL.startsWith("http:") || payload.fileURL.startsWith("https:"))) {
|
||||
returnVal = "Please enter HTTP URL"
|
||||
} else if (protocol === "FTP" && !(payload.fileURL).startsWith("ftp:")) {
|
||||
returnVal = "Please enter FTP URL"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user