B4J Question ftp upload zip file error

kohle

Active Member
Licensed User
Longtime User
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:
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
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
Top