When I try to upload a file with HttpUtils2, I get "Error: forbidden"
I've changed the permissions for the folder to 777, but no luck.
I can download a file from the same URL without any problems.
(replaced the actual urls details with ____)
What am I doing wrong (or omitting)?
I've changed the permissions for the folder to 777, but no luck.
I can download a file from the same URL without any problems.
(replaced the actual urls details with ____)
B4X:
Dim job1,job2 As HttpJob
Dim myurl,dlfilename,ulfiledir,lufilename As String
job1.Initialize("Job1", Me)
job2.Initialize("Job2", Me)
myurl = "http://www.__________.com/_________/"
dlfilename = "testdlfile.txt"
ulfiledir = File.DirRootExternal
ulfilename = "testulfile.txt"
job1.Download(myurl&dlfilename)
job2.PostFile(myurl,ulfiledir,ulfilename)
What am I doing wrong (or omitting)?