Nec*_*cto 2 lisp common-lisp hunchentoot web
我知道如何使用hunchentoot处理单个文件上传hunchentoot:post-paremter,但是当我添加一个属性时multiple,即<input name="file" type="file" multiple="multiple"/>我(hunchentoot:post-paraameter "file")只获得其中一个属性.是否存在(以及什么)接收用户选择的所有文件的机制?
Hunchentoot API不直接授予您访问多个上传文件的权限,但您可以使用它(hunchentoot:post-parameters *request*)来检索所有POST参数(包括上传的文件)的列表.这将是一个alist,您可以使用标准alist技术获取所有上传文件的列表(例如(remove "file" (hunchentoot:post-parameters hunchentoot:*request*) :test (complement #'equal) :key #'car)).