I upload via FTP and this problem appears if the remote target folder or name is in Arabic, even though the server supports the Arabic language.
B4X:
Dim sf As Object = sftp.UploadFile(DeviceFolder, DeviceFile, False, ServerFilePath)
Wait For (sf) ftp_UploadCompleted (ServerPath As String, Success As Boolean)
If Success Then
Log("file was uploaded successfully")
Else
Log("Error uploading file")
End If
B4X:
uploads/دروس
D:\1.jpg
java.lang.RuntimeException: Error uploading file.
550 uploads/????/1.jpg: No such file or directory
at anywheresoftware.b4a.net.FTPWrapper$2.run(FTPWrapper.java:241)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1589)
Error uploading file