B badal405 Member Licensed User Longtime User Jun 19, 2013 #1 Dear Erel, I am encountering a problem while uploading a file from emulator. Here below the error code. java.lang.RuntimeException: Error uploading file. 500 I won't open a connection to 10.0.2.2 (only to 92.253.4.198) Click to expand... BTW, how could i know whether ftp has been connected or not? I use the following code. Please confirm whether it is correct or not. Code: Copy If ftp1.PassiveMode=False Then 'lv.AddSingleLine(ftp1.List("\home")) ftp1.List("/") ToastMessageShow("Connceted.",True) Else ToastMessageShow("Could not conncet to the server.",True) End If
Dear Erel, I am encountering a problem while uploading a file from emulator. Here below the error code. java.lang.RuntimeException: Error uploading file. 500 I won't open a connection to 10.0.2.2 (only to 92.253.4.198) Click to expand... BTW, how could i know whether ftp has been connected or not? I use the following code. Please confirm whether it is correct or not. Code: Copy If ftp1.PassiveMode=False Then 'lv.AddSingleLine(ftp1.List("\home")) ftp1.List("/") ToastMessageShow("Connceted.",True) Else ToastMessageShow("Could not conncet to the server.",True) End If
Erel B4X founder Staff member Licensed User Longtime User Jun 19, 2013 #2 You should test it with a real device. The connection is established automatically when needed. You should check the Success parameter in the relevant event. Upvote 0
You should test it with a real device. The connection is established automatically when needed. You should check the Success parameter in the relevant event.
B badal405 Member Licensed User Longtime User Jun 25, 2013 #3 Dear Erel, I tried with real device but encountering another problem. Here below the error message. /home/prh91gf5/public_html/shaukat/1.jpg,success=false Java.lang.Runtime EXception:Error uploading file 553can't open that file:no such file or directory Click to expand... Here the code for uploading. Code: Copy ftp1.UploadFile(File.DirRootExternal, "1.jpg", True, "/home/prh91gf5/public_html/shaukat/1.jpg") Thanks and best regards. :sign0085: Upvote 0
Dear Erel, I tried with real device but encountering another problem. Here below the error message. /home/prh91gf5/public_html/shaukat/1.jpg,success=false Java.lang.Runtime EXception:Error uploading file 553can't open that file:no such file or directory Click to expand... Here the code for uploading. Code: Copy ftp1.UploadFile(File.DirRootExternal, "1.jpg", True, "/home/prh91gf5/public_html/shaukat/1.jpg") Thanks and best regards. :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Jun 26, 2013 #4 The FTP server can use a different home folder for FTP clients. Use can use FTP.List to find the available files. Upvote 0
The FTP server can use a different home folder for FTP clients. Use can use FTP.List to find the available files.
B badal405 Member Licensed User Longtime User Jun 29, 2013 #5 Dear Erel, Yes you are right. The problem solved. Many thanks. Erel said: The FTP server can use a different home folder for FTP clients. Use can use FTP.List to find the available files. Click to expand... Upvote 0
Dear Erel, Yes you are right. The problem solved. Many thanks. Erel said: The FTP server can use a different home folder for FTP clients. Use can use FTP.List to find the available files. Click to expand...
C catyinwong Active Member Licensed User Longtime User Sep 29, 2015 #6 I have the same 500 error from the FTP. The error is the same even if I test it with a real device. But I have tried to connect to the FTP from the computer, proving that all the FTP connection and address is fine is correct.. Upvote 0
I have the same 500 error from the FTP. The error is the same even if I test it with a real device. But I have tried to connect to the FTP from the computer, proving that all the FTP connection and address is fine is correct..
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2015 #7 Please start a new thread for this question. Upvote 0