Discussion:
[bottlepy] [2.x] Forced download "Access denied" 403 Forbidden
Lyrics Türkiye
2014-12-20 18:03:58 UTC
Permalink
Hi guys, it is my test code;

#-*- coding: utf-8 -*-

from bottle import *
from time import strftime
from os.path import splitext

@route("/indir/<dd:re:.*\.jpg>")
def indirr(dd):
return static_file(dd,root="/",download="{0}-{1}-{2}".format(dd,strftime
("%x"),splitext(dd)[1]))

run(host="localhost",port=8080)

Example url get the Loading Image..., I want download
this file. But I am seeing the Access denied error.

How to solve this?

Thank you for interest.
Best Regards..
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...