// 多图片
private String uploadHost2 = "http://IP:8080/ajax/attach.php?ssotoken="+ ssotoken + "&act=uploadpic";
//图片本地sd卡地址链接
String[] filePaths = { filePath1,filePath2,filePath3,filePath4};
/** 上传图片 */
private void upPics() {
RequestParams params = new RequestParams();
for (int i = 0; i < filePaths.length; i++) {
params.addBodyParameter("attach[" + i + "]", new File(
filePaths[i]), "image/jpeg");
}
uploadMethod(params, uploadHost2......
阅读全文