-
Notifications
You must be signed in to change notification settings - Fork 345
关于多张图片上传的name修复问题(紧急)!!! #47
Comments
但是name必须写死为"file", 是指服务器接收的数据类型. 请问有其他解决办法吗 |
同样遇到这个问题啊 |
`#pragma mark - 上传多张图片 多个参数
|
parameters:(id)parameters
name:(NSString *)name
images:(NSArray<UIImage *> *)images
fileNames:(NSArray<NSString *> *)fileNames
imageScale:(CGFloat)imageScale
imageType:(NSString *)imageType
progress:(PPHttpProgress)progress
success:(PPHttpRequestSuccess)success
failure:(PPHttpRequestFailed)failure ;
此方法中的name会传给下边方法,
name:(NSString *)name
fileName:(NSString *)fileName
mimeType:(NSString *)mimeType
我们后台是PHP,同事反馈说多张图片name不能相同,不然只能接收到一张图片(图片会覆盖),建议将name:(NSString *)name改为建议将name:(NSArray *)name;还有问题是你通过一个name可以上传多张图片的话,能告诉我后台接收思路吗?我可以反馈给接口同事,共同进步.
-------------------------------------------------------------------------------用代码改变世界.
The text was updated successfully, but these errors were encountered: