Hallo my friends.
I am using an HttpJob to upload a zip file.
The code I am using is
Dim j As HttpJob
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "filetoupload"
fd.Dir = Starter.DBFileDir
fd.FileName ="photo1.zip"
fd.ContentType = "Application/zip"
Wait For (CheckConnected) Complete (Connected As Boolean)
If Connected Then
j.PostMultipart("http://185.234.52.224/upload/ydor_oixalia", CreateMap("param1": "value1"), Array(fd))
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Lmessage.Text = "H Μεταφορά του zip έγινε !!!"
Else
Lmessage.Text ="***Error: " & j.ErrorMessage
ToastMessageShow("Error: " & j.ErrorMessage, True)
End If
j.Release
End If
Since the zip file can grow very large, I want to add a progress bar to show the user the percentage of the file that has been uploaded
Thank you
I am using an HttpJob to upload a zip file.
The code I am using is
Dim j As HttpJob
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "filetoupload"
fd.Dir = Starter.DBFileDir
fd.FileName ="photo1.zip"
fd.ContentType = "Application/zip"
Wait For (CheckConnected) Complete (Connected As Boolean)
If Connected Then
j.PostMultipart("http://185.234.52.224/upload/ydor_oixalia", CreateMap("param1": "value1"), Array(fd))
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Lmessage.Text = "H Μεταφορά του zip έγινε !!!"
Else
Lmessage.Text ="***Error: " & j.ErrorMessage
ToastMessageShow("Error: " & j.ErrorMessage, True)
End If
j.Release
End If
Since the zip file can grow very large, I want to add a progress bar to show the user the percentage of the file that has been uploaded
Thank you