Is there a way to pass an image file to a second page before uploading it to the data base?
Page 1
<input type="file" name="image" />
Page 2
<input style="display:none" name="image" value="<php? echo $_REQUEST['image']; ?>" />
page 3 -> database upload
$target_path = "uploads/";
$image_path_1 = $target_path . basename($_FILES['image']['name']);
move_uploaded_file($_FILES['image']['tmp_name'], $image_path_1);