Add HTTPS support for file upload/download

This commit is contained in:
charitha 2018-10-08 13:29:54 +05:30
parent 705e7d717b
commit 9f15dc9922

View File

@ -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"