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

*IMAGE BEING DOWNLOADED*

        {{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>

*DOWNLOAD FUNCTION*
def download():
    return response.download(request, db)

Regards;

Mostwanted

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f517ac5e-c931-42d3-980e-b493789e7b33%40googlegroups.com.

Reply via email to