In the php ajax what to use to get the image(above is correct)?
posted 5 years ago
suppose this(id:'file' file text field) submitted with SUBMIT Button to a PHP handler, I can by otherwise use a button in the same form (must be submit button?), for an ajax call to preview image, prior upload to php? In the php ajax what to use to get the image(above is correct)?
posted 4 years ago
I mean the ONLY way get:
$original_image = $_FILES['file']['tmp_name'];
is with webform submitted or... I can otherwise also with ajax button - not main submit - (prior submit with Submit button) to preview and after use Submit button?
ajax button (process with ajax same page) must be submit type button to get $original_image?