iOS文件上传文件URL错误Invalid parameter not satisfying: fileURL'
2013-12-25 22:06
411 查看
一:iOS文件上传提示URL错误 Invalid parameter not satisfying: fileURL'
二:解决方法:
注意:FileUrl 要调用 NSURL的 file 开头的类方法;
参考http://stackoverflow.com/questions/9858858/unable-to-change-desktop-image-because-url-is-not-file-url
二:解决方法:
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"wallpaper" ofType:@"jpg"]; NSURL* imageURL = [NSURL fileURLWithPath:imagePath isDirectory:NO];
注意:FileUrl 要调用 NSURL的 file 开头的类方法;
参考http://stackoverflow.com/questions/9858858/unable-to-change-desktop-image-because-url-is-not-file-url
相关文章推荐
- [AFHTTPRequestSerializer requestWithMethod:URLString; 'Invalid parameter not satisfying: URLString'
- IOS - AFN:Invalid parameter not satisfying: URLString
- 使用AFNetworking上传图片操作的时候出现reason: 'Invalid parameter not satisfying: name’?
- 【知了堂学习笔记】_springMVC_文件上传_错误_Required CommonsMultipartFile parameter 'file' is not present
- ios reason: 'Invalid parameter not satisfying: url'((无效的URL))
- IOS-Swift 百度地图 Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable
- [AFHTTPRequestSerializer requestWithMethod:URLString; 'Invalid parameter not satisfying: URLString'
- 'Invalid parameter not satisfying: URLString'网络请求的时候get使用特殊字符和汉字崩溃的恶心bug解决方法
- Xcode7.1(无效的URL)Invalid parameter not satisfying: URLString -- @ShinePug
- MyEclipse 8.5打不开文件时显示:Could not open the editor: Invalid thread access 错误
- ios 10 在WebView中选择文件上传 出现 whose view is not in the window hierarchy!
- MultipartFile文件上传,400 - Required MultipartFile parameter 'file' is not present
- Struts上传文件报java.io.FileNotFoundException错误
- tomcat下载文件时,URL含有文字参数与空格参数出错(java.io.FileNotFoundException错误) 解决方法(转)
- 用webclient实现无空间上传文件错误:Could not find a part of the path .....
- 'Invalid parameter not satisfying: date
- 'Invalid parameter not satisfying: body'
- 微信卡券开发,代金券修改卡券信息返回40145错误码: invalid update! Can not both set PayCell and CenterCellInfo(include: center_title, center_sub_title, center_url). hint: [DZ9rna0637ent1]
- iOS打包文件准备上传出现错误
- NSInternalInconsistencyException Invalid parameter not satisfying: URLString