Thanks very much for the reply. So is the form posted like a normal php form would be?
So I can recover the files something like:
$_FILE['fileName']?
Thats great news!
Is this the java that's sending the files to the webserver:
Code:
String fileName = pictureURI.getString().substring(pictureURI.getString().lastIndexOf('/'));
....
..
.
display.setCurrent(createScreenProgress("Uploading...", 100));
MultipartHttpConnection mhc;
if(username == null || username.equals(""))
mhc = new MultipartHttpConnection(uploadURL, progress);
else
mhc = new MultipartHttpConnection(uploadURL, progress, username, password);
mhc.addImg(rawImage, fileName, textLabel.getString());
response = mhc.send();
if(response.indexOf("success") != -1)
{
String fileSize = response.substring(response.lastIndexOf('|'));
messageField.setText(fileName.substring(1) + " (" + fileSize + "kb) uploaded successfully");
}
else if(response.indexOf("fail") != -1)
{
messageField.setText("Upload failed: " + response);
}
else
{
messageField.setText("Something happened... " + response);
}
display.setCurrent(detailsForm);
Is the file fields variable name fileName?
Also, where would the 'form' name be set?
Thanks so much for your help, this forum is the best!