小编Les*_*ony的帖子

AFNetworking表单请求(在一个请求中上传多个文件)

我们正在开发一个iOS应用程序.该应用程序在一个请求中提供单个和多个文件上载选项.我正在使用AFNetworking进行单个文件上传,并且工作正常.现在,我们需要支持多个文件上传.我有我的html代码实际上是从web上传多个文件.我需要从iOS应用程序做同样的事情.任何人都可以建议我们如何使用AFNetworking做同样的事情?

<form method="post" action="upload.php?key=ac2a04cc7b6d4420fa5e5eb1701fb0cc1acf7916&channelid=1" enctype="multipart/form-data">
<label>Title:</label> <input name="title" value="My Video Title" /><br />
<label>Date:</label> <input name="date" value="<?php echo time(); ?>" /><br />
<label>Location:</label> <input name="location" value="Sydney, Australia" /><br />
<textarea name="description">The description of the photo/video goes here</textarea><br />
<input name="file[]" type="file" multiple="multiple" /><br />
Run Code Online (Sandbox Code Playgroud)

iphone upload ios afnetworking

1
推荐指数
1
解决办法
3784
查看次数

标签 统计

afnetworking ×1

ios ×1

iphone ×1

upload ×1