Is it possible to post a <input type=“file” id="file" />
using this:
$.post("_sys/cmd.php", { file: $("#file").val() },
function(data){
if (data == "Success") {
$("#warn").html("<em>File Uploaded!</em>");
}
});
Tried using $("#file").val()
but no joy.
If it isn't possible, is there another way? Thanks. :)