K kohle Active Member Licensed User Longtime User Oct 23, 2020 #1 I want to upload a zip file and get this error : Waiting for debugger to connect... Program started. java.lang.RuntimeException: Error uploading file. 550 1: Not a regular file at anywheresoftware.b4a.net.FTPWrapper$2.run(FTPWrapper.java:241) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 1, Success=false java.lang.RuntimeException: Error uploading file. B4X: Copy FTP.Initialize("FTP", url, 21, strLogin, strPW) currentFileSize = (File.Size(fileDir, Filename))/1000 FTP.UploadFile(fileDir,Filename, False, txtZielVerz.Text) FTP.Close
I want to upload a zip file and get this error : Waiting for debugger to connect... Program started. java.lang.RuntimeException: Error uploading file. 550 1: Not a regular file at anywheresoftware.b4a.net.FTPWrapper$2.run(FTPWrapper.java:241) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 1, Success=false java.lang.RuntimeException: Error uploading file. B4X: Copy FTP.Initialize("FTP", url, 21, strLogin, strPW) currentFileSize = (File.Size(fileDir, Filename))/1000 FTP.UploadFile(fileDir,Filename, False, txtZielVerz.Text) FTP.Close
drgottjr Expert Licensed User Longtime User Oct 23, 2020 #2 do you know what "not a regular file" means? is fileDir really the same on both ends? there is also the matter of not transmitting the file as binary, but leave that aside for the moment. Upvote 0
do you know what "not a regular file" means? is fileDir really the same on both ends? there is also the matter of not transmitting the file as binary, but leave that aside for the moment.
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2020 #3 Your code cannot work. See this tutorial: B4X] Net library (FTP, SMTP, POP) with Wait For Upvote 0