Add HTTPS support for file upload/download

revert-dabc3590
Charitha Goonetilleke 6 years ago
parent b218591e19
commit 750dcc71c6

@ -282,7 +282,7 @@ function validateFileTransferParameters(payload) {
returnVal = "Please enter File URL"; returnVal = "Please enter File URL";
} else if (!payload.upload && !payload.fileURL) { } else if (!payload.upload && !payload.fileURL) {
returnVal = "Please enter the URL to upload file from device"; 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" returnVal = "Please enter HTTP URL"
} else if (protocol === "FTP" && !(payload.fileURL).startsWith("ftp:")) { } else if (protocol === "FTP" && !(payload.fileURL).startsWith("ftp:")) {
returnVal = "Please enter FTP URL" returnVal = "Please enter FTP URL"

Loading…
Cancel
Save