projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2aee6b6
)
Nom du fichier original lors du download.
author
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 22 Jul 2013 13:49:43 +0000
(15:49 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 22 Jul 2013 13:49:43 +0000
(15:49 +0200)
skins/photo_download.py
patch
|
blob
|
history
diff --git
a/skins/photo_download.py
b/skins/photo_download.py
index
3a185fd
..
674a2ae
100755
(executable)
--- a/
skins/photo_download.py
+++ b/
skins/photo_download.py
@@
-1,5
+1,6
@@
req = context.REQUEST
resp = req.RESPONSE
-resp.setHeader('Content-Disposition', 'attachment; filename=%s' % context.getId())
+filename = getattr(context, 'orig_name', context.getId())
+resp.setHeader('Content-Disposition', 'attachment; filename=%s' % filename)
return context.index_html(req, resp)