This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

FTP file name character limit???

Jul 9th, 2012, 11:52 AM

Hello,

I am developing an application that needs to FTP files to a remote destination. Currently everything works as expected; however when I try to send a file with a name that exceeds 150 characters I am experiencing issues. It appears long file names will cause a Socket exception when trying to rename the file. I believe the problem occurs when the file is being renamed from the ".writing" form to the target file name, because the file is transferred successfully as ".writing" before the exception is thrown. The file names I am working with are very long and my application needs to be able to handle file name lengths of at least 256 characters. Is there a way to fix this issue?