Passes File Description to API when Uploading

This commit is contained in:
CrushedPixel
2015-06-15 14:00:31 +02:00
committed by johni0702
parent 3341b3e681
commit 5805db984c
2 changed files with 10 additions and 3 deletions

View File

@@ -56,8 +56,11 @@ public class FileUploader {
}
}
if(description != null && description.length() > 0) {
postData += "&description=" + URLEncoder.encode(description, "UTF-8");
}
postData += "&name=" + URLEncoder.encode(filename, "UTF-8");
System.out.println(postData);
String url = "http://ReplayMod.com/api/upload_file" + postData;
HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection();