-1

I am using Jsoup 1.9. I want to upload a file to a PHP server. It must show a progress bar.

Document document = Jsoup.connect(url)
    .data("file", file.getName(), new FileInputStream(file))
    .post();
mhasan
  • 3,703
  • 1
  • 18
  • 37
Hitesh Rawat
  • 19
  • 1
  • 3

1 Answers1

0

Jsoup 1.9.2 doesn't seem to provide this kind of feature (file upload progress monitoring).

However, you can either use ApacheHttpClient or use directly java.net.URL. Here are two links explaining how to use one or other option:

Community
  • 1
  • 1
Stephan
  • 41,764
  • 65
  • 238
  • 329