Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#upload_file').submit(function(e){
- e.preventDefault(); // Prevent Default Submission
- $.ajax({
- url: 'includes/uploads.php',
- type: 'POST',
- data: new FormData(this),
- contentType: false,
- cache: false,
- processData:false,
- beforeSend: function() {},
- })
- .done(function(data){
- alert('Form Submit Successful ...');
- })
- .fail(function(){ // If fail display alert
- alert('Form Submit Failed ...');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement