gpt4 book ai didi

web - 如何处理 hunchentoot 中的多个文件上传?

转载 作者:太空宇宙 更新时间:2023-11-03 18:44:57 25 4
gpt4 key购买 nike

我知道如何使用 hunchentoot:post-parameter 在 hunchentoot 中处理单个文件上传,但是当我添加属性时 multiple ,即 <input name="file" type="file" multiple="multiple"/> .我得到了 (hunchentoot:post-parameter "file")只为其中之一。是否有(什么是)接收用户选择的所有文件的机制?

最佳答案

Hunchentoot API 不会直接让您访问多个上传的文件,但您可以使用 (hunchentoot:post-parameters *request*) 检索所有 POST 参数的列表(其中包括上传的文件)。这将是一个列表,您可以使用标准列表技术获取所有上传文件的列表(例如 (remove "file"(hunchentoot:post-parameters hunchentoot:*request*) :test (complement #'equal) :key #'car)).

关于web - 如何处理 hunchentoot 中的多个文件上传?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15249921/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com