Dim ffile As BANanoObject
pg.OnFileUploadError("upload", BANano.CallBack(Me, "onFileUploadError", Array(ffile)))
pg.onFileUpload("upload", BANano.CallBack(Me, "onFileUpload", Array(ffile)))
End Sub
Sub onFileUpload(ffile As BANanoObject)
Log("onFileUpload")
Log(ffile)
Dim status As String = ffile.GetField("status").Result
Select Case status
Case "success", "server"
Case Else
pg.Alert("Error during file upload!")
End Select
End Sub
Sub OnFileUploadError(ffile As Object)
Log("OnFileUploadError")
pg.Alert("Error during file upload!")
End Sub