I'm using okHttp and OkHttpUtils2
In my application the user take a Photo, then he have to upload it,
but using j.PostFile or using j.PostMultipart the $_FILES is ALWAYS EMPTY.
I Read all forum but I not found a solution, $_FILES is always Empty.
In my application the user take a Photo, then he have to upload it,
but using j.PostFile or using j.PostMultipart the $_FILES is ALWAYS EMPTY.
UPLOAD:
Link = "http://mysite.com/upload.php"
myphoto = "myphoto.jpg"
'
Dim Files as List
Dim mp As MultipartFileData
Files.Inizialize
mp.Initialize
mp.Dir = File.DirDefaultExternal
mp.FileName = myphoto
mp.KeyName = "file"
mp.ContentType = "image/jpg"
Files.Add(mp)
'
Dim j As HttpJob
ProgressDialogShow("WAITING")
j.Initialize("JOBUPLOAD", Me)
'j.PostMultipart(Link, Null, Files)
j.PostFile(Link, File.DirDefaultExternal, myphoto)
'
'The Job Result is Success with php result ECHO.
I Read all forum but I not found a solution, $_FILES is always Empty.
Last edited: