0
下面是声明ADRESS应用怎么写金字塔处理
def includeme(config):
a = config.add_handler
a('fileupload', '{lang}/case/fileupload{sep:/*}{name:.*}', ImageUpload)
在这里,类ImageUpload
@action(route_name='fileupload')
class ImageUpload():
def __init__(self,request):
@action(request_method='GET', renderer="json")
def get(self):
@action(request_method='POST', xhr=True, accept="application/json", renderer='json')
def post(self):
,当我尝试去る/箱/文件上传/它得到的代码我什么也没有,有什么问题,以及如何解决它?
没有我想的是处理器选择的方法,尽管REQUEST_METHOD的=“GET” – Setaper
我无法分析是否有什么问题,我的解决方案。除了更简单,它和你的一样。 –