The code I'm using is exactly what is found in the code archive:
http://www.blitzmax.com/codearcs/codearcs.php?code=2090Doing all the stuff that comes with the code (renaming, download MP3 etc.) works fine, small files is the only problem.
If I make a TXT file and write "Hello" in it and download it with BlitzMax I just get an empty file, but I can download it with any other FTP client just fine! but if I spam the TXT with "Hello" a million times making the file larger, it works with both the BlitzMax code and a normal client.
And it shouldn't be a permission problem or anything like that... The server itself is working fine and doesn't accept anonymous connections, so I know the login part works.
And the file does exist, I've created 3 files to test with Test.Mp3, Test.Png and Test.Txt they're all placed in the same place and accessed by the same user, the MP3 and PNG works fine with BlitzMax, It's just the small TXT that's the problem. I've tried making the PNG smaller and the same problem happens there, if the file is too small it will just be downloaded as an empty file.
There are no errors in either the Client or Server, in fact... the server tells me the file was fully downloaded!
And I'd like this to work on both Mac and PC.