Fixed staging file filename regression

This commit is contained in:
Roberto Rosario
2011-04-06 15:51:33 -04:00
parent 5284f273d7
commit d1eb09713d

View File

@@ -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)