Articles of plupload

How do I increase the upload size only when editing special pages?

I have the following code to increase the upload size only when editing certain, special pages: function my_edit_page_form( $post ) { if( my_is_special_page( $post ) ) { add_filter( ‘upload_size_limit’, ‘my_upload_size_limit’ ); } } add_action( ‘edit_page_form’, ‘my_edit_page_form’ ); function my_upload_size_limit( $size ) { return 1024 * 18000; } On one of those pages, I have a […]

Plupload in metabox – AJAX action not working in Class

I’m trying to put the WP Pluploader into a meta box on my posts page – as per Plupload Intergration in a meta-box? and I got it all working as in the example in the second link. However, I want to put it all into a class file. It stops working if I wrap […]

Get File Object from wp.Uploader

I would like to hook into the wp.Uploader and get the FileList object containing the file to be uploaded. So far I’ve been able to extend the uploader using the code below, but I can’t quite seem to find the “before upload” hook. $.extend( wp.Uploader.prototype, { success : function( file_attachment ){ console.log( file_attachment ); } […]

Can I use plupload multiple queues in wordpress?

I have a frontend upload form where users can upload images for their posts and I am using Plupload for it. Since the next upload only starts once the previous upload is finised and the preview appears, it takes quite a while to upload only a couple of images. The upload is fast, but wp […]

How to disable plupload completely from latest wordpress 3.6 and make browser upload default

How can I disable plupload completely from latest wordpress 3.6 and make browser upload default? Thanks in advance.

Plupload resize for worpdress

So, for the Plupload, I know there is a documentation to how to resize the image on the client side before uploading : However, I am not sure how to do it for WordPress. Could you guys give me a guidance to how to do this? Thank you so much! Regards

How to set post_id to 0 when you upload image via Add media button. (async-upload.php)

How to set post_id to 0 when you upload image via Add media button which will make a requtest to async-upload.php Instead of actual post_id? Thank you. add context

I have frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at wp_handle_upload_prefilter to check for supported file However this filter will affect all other media uploader as well. I think, if it […]

Getting ID from ajax response of async-upload.php

Its a wordpress+jQuery question. Can’t post it on stackoverflow because i believe it involves wordpress knowledge too. What I am trying to achieve: I am attaching the wordpress async media uploader on “add post” page metabox so user can upload lots of images simply drag and drop them into the uploader and don’t have to […]

post_id missing from the wp-admin file upload request

I’m trying to upload an attachment using the “Add Media” button placed right above the editor. The request goes to the wp-admin/async-upload.php file. I can put a var_dump($_REQUEST); call there. Whenever I upload an attachment for a regular post, the $_REQUEST contains the post_id key and the attachment has that post saved as it’s parent_post. […]