hover animation preload hover animation preload hover animation preload
wordpress post entry title background
FTPplanet.com forums
post entry title background

File Transfer Planet Forums » FTP New Users

correct file names are not showing properly while uploading through FTP?

(1 post)
  • Started 2 years ago by randy
  • This topic is not a support question

No tags yet.

  1. randy
    Member

    Hi all,

    I am using commons-net-1.4.1.jar for uploading files to server. Its working fine. In some cases while we are uploading files the files are moving properly but the file name are showing like CHAPTE~1.DOC, CHAPTE~2.DOC, CHAPTE~3.DOC, CHAPTE~4.DOC, but the original file names are in local system is Chapter 3 Integration – Trapezoidal and Simpson’s Rules.doc, Chapter 4 Exponential and Logarithmic Functions – Area Applications.doc, Chapter 4 Exponential and Logarithmic Functions – Differentiate Hence Integrate.doc, Chapter 5 Trigonometric Functions – Dynamic Graphs.doc.

    In server the files are opening properly. Can any one please give some suggestion to rectify this problem? Here I have attached code.

    [code]
    http://ftp.setFileType(FTP.BINARY_FILE_TYPE);
    http://ftp.changeWorkingDirectory(serverpath);
    int reply = http://ftp.getReplyCode();
    if(!FTPReply.isPositiveCompletion(reply))
    {
    throw new Exception ("Unable to change working directory " +
    "to in SupportiveFiles path :"+ serverpath);
    }
    }

    String filename = children[i].getName().substring(0,children[i].getName().lastIndexOf("."));
    String filenameextenson = children[i].getName().substring(children[i].getName().lastIndexOf(".")+1,children[i].getName().length()).toLowerCase();
    String newFilename =filename +"."+filenameextenson;
    String outputserverpath = serverpath+"/" + newFilename;
    boolean retValue = false;
    FileInputStream instreamlocal = new FileInputStream(children[i]);
    boolean retValue = http://ftp.storeFile(newFilename,instreamlocal);

    [/code]

    Posted 2 years ago #
  2. Anonymous

    [url=http:/albertina1.de.tl][/url]

    Posted 2 years ago #

RSS feed for this topic

Reply

(required)

Allowed markup: a blockquote code em strong ul ol li img.
You can also put code in between backtick ( ` ) characters.


Fatal error: Call to undefined function mini_stats() in /home/ftplanetipswitch/filetransferplanet.com/forums/my-templates/flapkakumei/footer.php on line 19