//PHP $tf = $_FILES['Filedata']['tmp_name']; if (is_uploaded_file($tf)) { move_uploaded_file($tf, "../pics/$id.jpg"); } //HTML