SergeNova
Member
Hello everyone, I am now working with AJwebKit but the problem I have is that I am unable to upload a file using the normal webvue technique :
Anyone have any idea how to do this with AJWebKit?
Thank you in advance
Serge Nova
B4X:
Sub ShowFile_Chooser (FilePathCallback As Object, FileChooserParams As Object)
cc.Initialize("CC")
cc.Show("*/*", "Choose File")
Wait For CC_Result (Success As Boolean, Dir As String, FileName As String)
Dim jo As JavaObject = Me
If Success Then
Log(FileName)
File.Copy(Dir, FileName, Starter.Provider.SharedFolder, "TempFile")
jo.RunMethod("SendResult", Array(Starter.Provider.GetFileUri("TempFile"), FilePathCallback))
Else
jo.RunMethod("SendResult", Array(Null, FilePathCallback))
End If
End Sub
Anyone have any idea how to do this with AJWebKit?
Thank you in advance
Serge Nova