We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The image uploads where working until today. Only the simpel image uploader will upload the images. But deleting the uploaded images is also broken.
After some digging, I found out that the ajax response was "0".
// Delete file via Ajax $( '.rwmb-uploaded' ).on( 'click', '.rwmb-delete-file', function() { var $this = $( this ), $parent = $this.parents( 'li' ), $container = $this.closest( '.rwmb-uploaded' ), data = { action: 'rwmb_delete_file', _ajax_nonce: $container.data( 'delete_nonce' ), post_id: $( '#post_ID' ).val(), field_id: $container.data( 'field_id' ), attachment_id: $this.data( 'attachment_id' ), force_delete: $container.data( 'force_delete' ) }; $.post( ajaxurl, data, function( r ) { console.log(ajaxurl); console.log(data); console.log(r); if ( !r.success ) { alert( r.data ); return; }
The console.log(r) gives back a 0. The other variables are filled in with the good object I think.
Can someone help me out with this?
The text was updated successfully, but these errors were encountered:
I did a clean install and it worked again
Sorry, something went wrong.
No branches or pull requests
The image uploads where working until today. Only the simpel image uploader will upload the images.
But deleting the uploaded images is also broken.
After some digging, I found out that the ajax response was "0".
The console.log(r) gives back a 0. The other variables are filled in with the good object I think.
Can someone help me out with this?
The text was updated successfully, but these errors were encountered: