HttpUrlConnection multipart file upload with progressBar
问题 I want to check progress of uploading file by HttpUrlConnection . How I can do this? I've tried to calculate bytes when writing data in OutputStream but it's wrong, cause real uploading happens only when I call conn.getInputStream() , so I need somehow to check inputStream. Here is my code: public static void uploadMovie(final HashMap<String, String> dataSource, final OnLoadFinishedListener finishedListener, final ProgressListener progressListener) { if (finishedListener != null) { new Thread