I'm trying to send a simple file with MultipartRequest but get no response error, only my file is not sent. My method is similar to this thread:
The settings from my apache / php are all right and I can send a file through another system in the same folder.
MultipartRequest req = new MultipartRequest();
req.setPost(true);
InputStream is = null;
String filename = "/home/bruno/test.txt";
try {
is = FileSystemStorage.getInstance().openInputStream(filename);
req.addData("content", is, FileSystemStorage.getInstance().getLength(filename), "text/plain");
req.setFilename("content", filename);
NetworkManager.getInstance().addToQueue(req);
} catch (IOException ioe) {
System.out.println("ERROR");
}