{{for details in details:}}
<div class="photos">
<img id="item" src="{{=URL('download',args=details.image)}}" height="250px" width="250px"/>
<span class="details">
<span>{{=details.name}}</span> <a href="{{=URL('download', args=details.image)}}">Download Image</a><br />
{{=details.place}}
</span>
{{pass}}
</div>
def download():
return response.download(request, db)
I want to download an image but i want it to download with its originally saved name, is there a way I can modify my download function to do this? So far its downloading properly as desired its just that its renaming images with dates e.g: (IMG-20200418-WA0002)
response.headers['Content-Disposition']='attachment;filename=graph.%s'%request.args(0)