I'm trying to let users download a .vcf file (vCard).
I copied myfile.vcf to the static folder. When I try going to www.myapp.com/static/myfile.vcf I get "invalid request" while other files in the static folder ending .js or .ico get served fine. Any ideas why it doesn't like .vcf or how to fix it?
Thanks [also asked on Stackoverflow]
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/4FUQT-8Lu1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/4FUQT-8Lu1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
I tried it and it worked fine with the local server on my laptop. Maybe it's something to do with my Apache setup then I guess? Dunno.
--
I've done some more experimenting and it seems it was not to do with the routing at all as I made another .vcf file and pasted some text in and that worked.It seems there was something about the file content that my system did not like. The file I had issues with was downloaded from http://vcardmaker.com/. Goodness knows what the issue was. Thanks for your help.