Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function UploadFile(ByVal HostName As String, _
ByVal UserName As String, _
ByVal password As String, _
ByVal LocalFileName As String, _
ByVal RemoteFileName As String) As Boolean
On Error GoTo ErrHandler
Dim oInet As Inet
Set oInet = New Inet
With oInet
.Protocol = [blue]icHTTP[/blue]
.RemoteHost = HostName
.UserName = UserName
.password = password
.Execute .url, "Put " + LocalFileName + " " + RemoteFileName
Do While .StillExecuting
DoEvents
Loop
UploadFile = (.ResponseCode = 0)
End With
ExitHere:
On Error Resume Next
Set oInet = Nothing
Exit Function
ErrHandler:
Debug.Print Err, Err.Description
Resume ExitHere
End Function