How can I access the native HTML5 Blob in WordPress?
How can I access the native HTML5 Blob in WordPress?
How can I access the native HTML5 Blob in WordPress?
As you can see in wp-includes/script-loader.php, the exact message ‘An error occurred in the upload. Please try again later.’ is the default error message. After looking further in wp-includes/js/plupload/handlers.js you can realize that something specific happened. You could debug this by setting a breakpoint to look up exact error code. See https://stackoverflow.com/a/13372025/2234089 for more information … Read more
I want to customize wp.media (the wordpress admin uploader) in order to change the file name but only in video custom post type
Is custom behaviour possible when asynchronously uploading?
I managed to do it by myself thanks to this tutorial. Moved content of do.php file to a function named cmr_upload inside a class. Then changed the plupload options from: url : plugin_dir + ‘do.php’, … multipart_params : { “chapter_id”: i, “path”: path to url : ‘<?php echo admin_url(‘admin-ajax.php’) ?>’, … multipart_params : { “chapter_id”: … Read more
Answering own questions is becoming a habit 🙂 But hope this helps others after finding a solution that worked for me. First defining the three variables I needed in the upload function: var features = “”; var colors = “”; var styles = “”; Then, added the following to prevent error if pwTags was empty: … Read more
I finally found a solution that works for me which I want to share with you. It’s more or less what EHerman posted here, I just made some little changes to adapt the code to my case. Basicly the idea is to find out that the upload comes from my admin page. This is done … Read more
How to locate the js code and php code for certain function?
How to get file object from file_attachment?
Get uploaded attachment width & height and attachment ID after upload them