First Time User Please check previous example for normal file upload by server script( php | java | .net | coldfusion ) Upload File To Server - Android Example (http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106 )
In this example uploading file on server by ftp client ( with the use of ftp4j-1.6.jar ).
Steps :
1. Using ftp4j-1.6.jar from sauronsoftware repository. Download and Add ftp4j-1.6.jar as library.
2. Must be required a Server Dedicated IP for FTP File upload.
In this example uploading an image from sdcard to web server.
Steps :
1. place an image on sdcard. 2. place sdcard image path and image name in UploadToServer.java. ( see below ) 3. create a php script (UploadToServer.php) at server. ( see below ) 4. place php script path in UploadToServer.java. ( see below ) 5. create folder name uploads on server where you have placed php script. 6. give permission 777 (read/write/execute) to uploads folder.