Mine is not working at all. Tried all possible ways. My requirement is to upload files from WP site front end via media uploader.
I got the error, https://www.awesomescreenshot.com/image/3715079/0d40b3c925c1a33a204c769c66a0c6a9
The loader is showing all time, no old images listed in the screen and can’t upload new media items too. When I tried to upload new images via this screen, i am getting the error “An error occurred in the upload. Please try again later.”
I checked the permissions too(both upload folder permission & user role permission to upload media files)
No errors/warning on the console.
I called my custom jQuery files and media jquery as follows:
add_action( 'wp_enqueue_scripts', 'LBtheme_scripts' );
function LBtheme_scripts() {
wp_enqueue_script( 'StripeJS1', "https://js.stripe.com/v2/" , array(), '26.10.23', true );
wp_enqueue_script( 'mainScript', plugins_url('/js/main.js', __FILE__ ) , array(), '26.10.23', true );
wp_enqueue_script( 'mainajax', plugins_url('/js/front-end-ajax.js', __FILE__ ) , array(), '26.10.23', true );
wp_enqueue_media();
}
Anyone please help me to solve this issue? Urgent, please ??