We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Contributed by PhilCowart
Upload.upload({ url: 'api/upload-image.php', headers: {'Content-Type': file.type}, method: 'POST', data: file, file: file, })
$filename = $_FILES['file']['name']; $destination = '../assets/img/users/' . $filename; move_uploaded_file( $_FILES['file']['tmp_name'] , $destination );