1. jerzyk
  2. django-storages

Commits

Janusz Harkot  committed 35d571f

ftp fixes

  • Participants
  • Parent commits 016773c
  • Branches default

Comments (0)

Files changed (1)

File storages/backends/ftp.py

View file
             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)