500 Internal server error Android HttpPost file upload
问题 Lately I've noticed I get this error when I try to upload an image to my server using HttpPost, the code I use in Eclipse is this: HttpPost httpPost = new HttpPost((String) params[0]); Uri uri = (Uri) params[2]; String fileName = getFileName(uri); if (fileName == null) fileName = "image"; InputStream inputStream = getContentResolver().openInputStream(uri); HttpEntity mpEntity = MultipartEntityBuilder.create().addPart("place", new StringBody((String) params[3])).addBinaryBody("appuploadfile",