Fixed staging file filename regression
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user