Failed media upload: “The uploaded file was only partially uploaded.”
I solved it by adding <?php header (“Connection: close”); ?> in file.php situated under wp-admin/include
I solved it by adding <?php header (“Connection: close”); ?> in file.php situated under wp-admin/include
To load admin scripts only on your pages, you should use the $hook-parameter: function enqueue_scripts( $hook ) { if( ‘my-page’ != $hook ) return; wp_enqueue_script(‘jquery’); wp_enqueue_media(); // etc… } add_action(‘admin_enqueue_scripts’, ‘enqueue_scripts’); Concerning the loading problem. This seems to be still an open problem. The ticket 27985 was followed up by #32264, which is not closed … Read more
Actually, it’s very easy to attach images to posts and pages from directly within the editor. Just click on the Add an Image button (immediately to the right of Upload/Insert) to access the uploader. You can upload as many images as you want to the media gallery for that page and edit the meta information … Read more
For the part of opening a lightbox, browse for something and then performing something on an action within: WordPress has this already build in. For what you ask is basically the thickbox that opens up like in the post editor when you browse for an image in the gallery. You find all the code you … Read more
That’s a server permission problem. According to the WP docs: Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress (which may be different than the server account). For example, you may have a user account that lets you FTP files back and forth … Read more
It is possible by using the plugin: http://wordpress.org/extend/plugins/download-shortcode/ I am here to assist you since I am using the same functionnality in my website (force dowloading of post attachements)
See my question and answer again, you linked it already in your question: simple solution for restricting access to (some) uploads/downloads The solution isn’t that hairy the only necessity – besides configuring the plugin correct – is to create a .htaccess, which you could do programmatically. For that you have to automate the creation of … Read more
I’ve run into this problem before with both PPT files and PDF documents. The solution, actually, was quite simple … There’s a plug-in called PDF and PPT Viewer that will uses Google Docs to render your presentation inside the page. Each slide/page is rendered as a image using Google’s API rather than Flash or a … Read more
The built-in import mechanism can only fetch file attachments that are accessible over the internet – which will normally not apply to your local WP install. The best option is to dump the whole database and do an MySQL import on the receiving domain. Your image files and other attachments need to be ftp-ed to … Read more
I’m not entirely sure what your intentions are for the code, and unfortunately i didn’t find what you provided worked very well, so i rewrote parts of the code supplied to make it into a more workable solution. This code will work for saving the attachment order in the metabox on save, not via ajax, … Read more