MultipartEntity Files not uploading through device
<p>Possibly this is a duplicate question but I have already tried all answer of this site but none of this working!</p>

<p>I am using <code>MultipartEntity</code> for image upload. It's working completely fine in Emulator but When I check in device its not working.</p>

<p>Below my code</p>

<pre><code> HttpParams params = new BasicHttpParams();
 params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP);    

 HttpClient httpClient = new DefaultHttpClient(params);
 HttpContext localContext = new BasicHttpContext();
 HttpPost httpPost = new HttpPost("http://url.com/webservice_uploadvideo.php");

 MultipartEntity entity = new MultipartEntity(HttpMultipartMode.STRICT);

 FileBody filebodyVideopre = new FileBody(new File(videoUploadpathPre)); //pre

 entity.addPart("fin_detail", filebodyVideopre);

 httpPost.setEntity(entity);

 HttpResponse response = httpClient.execute(httpPost, localContext);
</code></pre>