I am trying to upload file to a web server
the post is working perfectly on rest api testing software
but the same parameters are not working on my app
here is the code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
no matter how many examples i tried i always get job failure with "internal server error page"
the web developer is saying that this client error and it is working fine with postman
here is the php code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
any help/ideas are highly appreciated i am stuck for more that 10 hours
			
			the post is working perfectly on rest api testing software
but the same parameters are not working on my app
here is the code
			
				B4X:
			
		
		
		    Dim j As HttpJob
    Dim img As String = "btn1.jpg"
    j.Initialize("", Me)
    Dim mp As MultipartFileData
    mp.Initialize
    mp.Dir = File.DirAssets
    mp.FileName = img
    mp.KeyName = "Driving_licence"
    mp.ContentType = "image/png"
    j.PostMultipart("http://driver.com/taxi/api/customerProfile", Null, Array(mp))
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Log(j.GetString)
        If img = j.GetString Then
            ToastMessageShow("done..", False)
        Else
            ToastMessageShow("Error ", False)
        End If
    End If
    j.Releaseno matter how many examples i tried i always get job failure with "internal server error page"
the web developer is saying that this client error and it is working fine with postman
here is the php code
			
				PHP:
			
		
		
		if(isset($_FILES)) {
foreach ( $_FILES as $fName => $fArray ) {
$photoName = $_FILES["file"]["name"];
move( public_path( 'avatars' ), $photoName );
}
}any help/ideas are highly appreciated i am stuck for more that 10 hours
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		