Hi Dave, yeah, i changed to grid since it has the download function, but
when i click on it, it navigates me to the next page with the name of file
in URL and 404 not found. do you know how to fix this problem?  you can see
my code in detail in the other post named CVS file download.

Thanks

On Wed, May 29, 2019 at 1:23 PM Dave S <snidely....@gmail.com> wrote:

>
>
> On Wednesday, May 29, 2019 at 1:07:21 PM UTC-7, Dave S wrote:
>>
>> [...]
>>
>
>
>> You may not want the 'Content-disposition' header -- it's setting
>> attachment and filename.
>>
>> [...]
>> But CSV is an ugly thing to show to a user; if the user needs query
>> results in a table, then either SQLTABLE or SQLFORM.grid could be used, and
>> I think the latter could also be used for a file you read.
>>
>> Ah, I see elsewhere that you are using the grid, and are trying to give
> the user a download.  So, good!  And you do want the 'Content-disposition'
> header.
>
> /dps
>
> --
> 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/01c09fd7-5694-4afa-885f-4c3136eab0b2%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/01c09fd7-5694-4afa-885f-4c3136eab0b2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAKDykLi0CctMKe4Ymiv%2BJ06SAARYyUi1AaG08d64k2EPFGquVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to