Volley Multipart Request with Progress Bar
<p>how to use progressbar in volly multipart request to upload images. i am using <a href="https://github.com/DWorkS/VolleyPlus" rel="nofollow noreferrer">VolleyPlus</a> library for multipart request. my multipart request code is </p>

<pre><code>SimpleMultiPartRequest smr = new SimpleMultiPartRequest(Request.Method.POST, BASE_URL,
            new Response.Listener&lt;String&gt;() {
                @Override
                public void onResponse(String response) {
                    Log.d("Response", response);
                    try {
                        JSONObject jObj = new JSONObject(response);
                        String message = jObj.getString("message");

                        Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();

                    } catch (JSONException e) {
                        // JSON error
                        e.printStackTrace();
                        Toast.makeText(getApplicationContext(), "Json error: " + e.getMessage(), Toast.LENGTH_LONG).show();
                    }
                }
            }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {
            Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();
        }
    });

    smr.addFile("image", imagePath);
    smr.addMultipartParam("name", fileType, fileName);        
    MyApplication.getInstance().addToRequestQueue(smr);
</code></pre>

<p>now i want to add progressbar for uploading file like this:</p>

<p><a href="https://i.stack.imgur.com/4r9Hp.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4r9Hp.gif" alt="progress bar - 1"></a></p>

<p>or</p>

<p><a href="https://i.stack.imgur.com/UdTk0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UdTk0.jpg" alt="enter image description here"></a></p>