The jQuery ajax method you're using (running on the client in the browser) sends the form data to a script on the server, then that script handles the upload.
In this walkthrough, we'll start with a simple version of a PHP file upload tutorial and gradually build on it—adding file type and size checks, ... Prerequisites · What We're Building? · Part 1: Setting Up the Basic...
We'll be uploading files to a PHP page, upload.php. The page will handle both the Ajax upload requests and standard form POSTs when the user clicks “Upload ...
... jQuery and Ajax to upload files to an Apache server. There is a PHP component on the Apache server that received the jQuery and Ajax file upload ...