Commits

Janusz Harkot  committed 35d571f

ftp fixes

  • Participants
  • Parent commits 016773c

Comments (0)

Files changed (1)

File storages/backends/ftp.py

             if not hasattr(content, 'read'):
                 memory_file = StringIO(content)
                 wrap_data = True
+            else:
+                memory_file = content
 
             self._connection.storbinary('STOR ' + os.path.basename(name), memory_file, 8 * 1024)