diff --git a/apps/documents/staging.py b/apps/documents/staging.py index b89a89da99..0f99b338f3 100644 --- a/apps/documents/staging.py +++ b/apps/documents/staging.py @@ -62,7 +62,7 @@ class StagingFile(object): def upload(self): try: - return File(file(self.filepath, 'rb')) + return File(file(self.filepath, 'rb'), name=self.filename) except Exception, exc: raise Exception(ugettext(u'Unable to upload staging file: %s') % exc)