I want to upload a file on the FTP Server by Selecting a file form my local machine. The Application is designed in an
applet where a browse button is clicked to select the file using the FileChooser. After the selection of the file Upload button is clicked to upload the file to the FTP server. But my problem is that it uploads the file in the root path of the FTP server if the directory is not present but it uploads to the correct directory path once I manually create the desired directory. The creation of directory has to be dynamic based on the username and the function the user selects. so it would be very helpful if someone can help me with some
java code to first check whether the directory exists and if not then it could create it so that my code can upload the specified file to the specified directory.
Thank You
[ UD: You accidentally posted in all-bold letters with a large font size; I fixed that for you. ]