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
我無法分析是否有什麼問題,我的解決方案。除了更簡單,它和你的一樣。 –