Click to See Complete Forum and Search --> : FTP uploads only 52 bytes then finishes =\


Owyn
May 15th, 2009, 03:57 AM
it stops at 52 bytes for jpeg files, it uploads txt files fully but without newline symbols.. would very appreciate help with making this better

*solved _http://mail.python.org/pipermail/python-list/2001-June/089022.html

Richard.J
May 15th, 2009, 07:53 AM
for jpegs, set the mode to binary.
Textfiles are different on Unix or Windows in terms of line ends: CR/LF or simply LF. You need to convert them from one format to the other if you transfer between different OS.
On Unix, dos2unix/unix2dos can be used, for Windows various editors support both formats.


HTH,
Richard