Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function deleteuploadedfile(filetodelete) {
- $imagefile = 'http://domain.co.uk/wp-content/themes/monster/shopp/uploads/'+filetodelete;
- alert($imagefile);
- $.ajax({
- type: 'POST',
- data: {
- action: 'deleteimage',
- imagefile: $imagefile,
- },
- url: 'http://domain.co.uk/wp-content/themes/monster/shopp/delete.php',
- success: function(response){
- if(!response.success) {
- alert(response.error);
- } else {
- alert("success!");
- }
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement