I\'m facing some difficulties while uploading files to server, I need to know full code of file uploading with namevaluepair. Hear is my android code, I\'m getting only my file
If you want simple and fast then i will suggest you ION Library
Post multipart/form-data and read JSON with an upload progress bar With ION :
Ion.with(getContext())
.load("https://koush.clockworkmod.com/test/echo")
.uploadProgressBar(uploadProgressBar)
.setMultipartParameter("goop", "noop")
.setMultipartFile("archive", "application/zip", new File("/sdcard/filename.zip"))
.asJsonObject()
.setCallback(...)