From d1eb09713d63b68cfc381f28d8e5ed354fbe8793 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 6 Apr 2011 15:51:33 -0400 Subject: [PATCH] Fixed staging file filename regression --- apps/documents/staging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)