Skip to content

Commit

Permalink
Allowed empty file for upload
Browse files Browse the repository at this point in the history
Fixes bug 1009846.

Upload form in Containers now allows empty files
to be uploaded to Swift.

Change-Id: I4ff4506eae4e9dc0b9d39348cc80780995d1d0ac
  • Loading branch information
ttrifonov committed Jul 9, 2012
1 parent 3990985 commit dcb6683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizon/dashboards/nova/containers/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class UploadObject(forms.SelfHandlingForm):
name = forms.CharField(max_length=255,
label=_("Object Name"),
validators=[no_slash_validator])
object_file = forms.FileField(label=_("File"))
object_file = forms.FileField(label=_("File"), allow_empty_file=True)
container_name = forms.CharField(widget=forms.HiddenInput())

def handle(self, request, data):
Expand Down

0 comments on commit dcb6683

Please sign in to comment.