apache-flex - 在一个 HTTP Post 中灵活地上传多个文件

标签 apache-flex http upload

遍历 FileReferenceList 中的文件引用并在每个文件上调用上传意味着文件将作为单独的请求上传。

我想在一个 POST 中上传一堆文件(我已经有一个 ASHX 处理程序可以接受它)。

有什么想法吗?

最佳答案

据我所知,这是不可能的。

来自文档:

The FileReferenceList class lets the user select one or more files to upload to a server-side script. The file upload is handled by the FileReference.upload() method, which must be called on each file that the user selects.

...和...

Uploading multiple files requires you to upload each of the selected files by using FileReference.upload()

您或许可以使用 AS3 zip library 创建一个 zip并将其发送到服务器。

关于apache-flex - 在一个 HTTP Post 中灵活地上传多个文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/528441/

相关文章:

actionscript-3 - 临时存储文件并在没有 Air 的 AS3 中再次加载它们

java - 阐明 Web 开发工具和语言 (Java)

java - 如何在 Android Activity 之间的 HttpContext 中保留 HTTP session cookie?

forms - extjs文件上传进度

node.js - 在 Express (node.js) 中动态限制上传文件大小

apache-flex - 定时器与 setTimeout

php - 如何使用 Flex 调用 AMF 服务并取回 MP3?

http - Telegram 机器人 API 响应 403 Forbidden

google-chrome - 流式传输文本数据时禁用 Chrome 缓冲

php - tmpfile() PHP 返回 false 虽然 upload_tmp_dir 是可写的