You caught us doing some quick maintenance, temporarily restricting your repository to read-only access.
Issue #220 new
Writing an empty string to a file gives an S3ResponseError.
from django.core.files.storage import default_storage f = default_storage.open('---test', 'w') f.write('') f.close() # S3ResponseError: 400 Bad Request
Here's what happens:
- There are no parts in the multipart request
- When it's time to send the multipart request to S3, multipart.py@to_xml spits out the xml string
which S3 doesn't like. If you write an empty string to a file and then close it, it should just blank the file.