public void saveFile(String name, String author, String description) {
    String data = "";
    if (description == null)
      description = "";
    try {
      data = "name=" + URLEncoder.encode(name, "UTF-8") +
        "&description=" + URLEncoder.encode(description, "UTF-8") +
        "&author=" + URLEncoder.encode(author, "UTF-8") +
        "&file=" + reader.saveFile();
    } catch (UnsupportedEncodingException uee) {
      uee.printStackTrace();
      return;
    }

    System.out.println("Saving file: " + data);

    // Make a post!
    try {
      URL url = getResource("prgup.php");
      URLConnection urlc = url.openConnection();
      urlc.setDoOutput(true);
      urlc.setUseCaches(false);
      HttpURLConnection httpConnection = (HttpURLConnection) urlc;

      httpConnection.setRequestMethod("POST");
      httpConnection
	.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
      DataOutputStream out =
	new DataOutputStream(httpConnection.getOutputStream());
      out.writeBytes(data);
      out.flush();
      out.close();

      InputStream is = httpConnection.getInputStream();

      System.out.println("Read back:");
      int c;
      while ((c = is.read()) != -1) {
	System.out.print((char) c);
      }

    } catch (IOException ioe) {
      ioe.printStackTrace();
    }
  }