This include all question concerning the process of uploading file, whether from the WP Admin Pages or from a front end editor.
27
votes
3answers
31k views
How can I add an image upload field directly to a custom write panel?
I've added a new page under "Pages" in the wordpress admin, and added several custom fields. I'd also like to be able to add an upload image field to the page editor - is there some way to do this via ...
21
votes
4answers
4k views
Plupload Intergration in a meta-box?
I know that plupload is going to be the new upload engine for WordPress 3.3 but I was wondering if there is any documentation yet on how it integrates with WordPress.
My specifically how to collect ...
12
votes
2answers
4k views
How to Protect Uploads, if User is not Logged In?
I use wordpress for a private site where users upload files.
I use the "Private WordPress" to prevent access in to the site if the user is not logged in.
I would like to do the same to the files ...
12
votes
1answer
2k views
Limit image upload to one and disable audio, video and other document file types to upload
Somebody knows some trick in Add new Post to:
Disable the upload of audio, video and other filetypes.
Only accept the upload of an image (jpg, png, gif).
Limit the upload of each Post to only One ...
12
votes
2answers
264 views
Trigger refresh for new media manager in 3.5
I'm trying to figure out how it's possible to 'refresh' the media library in the new media dialogue in 3.5. I'm adding images from an external image library to the WordPress library (via a tab/iFrame ...
10
votes
4answers
4k views
Using Wordpress 3.5 Media Uploader in meta box?
Is this possible to do?
I love how the new uploader works. I'm guessing it has to do with a jQuery call like the other way did.
EDIT
This is the code I am currently using
...
9
votes
3answers
724 views
Load minimum WordPress environment
I made my own upload service for my website that is separate from WP, but uses WP to provide low level db functions and user verification. To do that, I include wp-load.php in my main script ...
9
votes
3answers
3k views
How to upload files straight to S3 without using local storage?
I'm looking for a WordPress plugin that would allow me to upload files straight to
We are a development shop that actively co-creates CMS websites with clients. This means that we are often ...
9
votes
2answers
206 views
Specific upload folder for PDFs in custom Post type in WP multisite
I need to filter uploads to a specific folder for a custom-post type called "document" only for PDFs.
So far, I have:
function custom_upload_directory( $args ) {
$base_directory = ...
7
votes
2answers
1k views
How to Require a Minimum Image Dimension for Uploading?
I need a way to restrict authors from uploading a images bellow a specific dimensions.
Say I only want to allow uploading images that are at least 400px x 400px. If the image size is smaller, the ...
7
votes
2answers
1k views
Handling front-end file uploads, considering safety and ease of use
I'm looking to adapt an existing forum-like plugin which has no facility for attaching media.
The plugin works as a Custom Post Type, so it would be as "simple" as attaching an image to a post.
I am ...
7
votes
1answer
838 views
WordPress 3.5: Switch back to Old Media Uploader?
Is there any way to switch back to the old media uploader in WordPress 3.5? The new one is very slow for me, as I have thousands and thousands of images across my site, and I have a few plugins that ...
7
votes
2answers
182 views
Which asset URLs are acceptable in a “vanilla” MU install?
Wordpress appears to let content be addressed by many URIs in an MU install. For example:
example.com/wp-content/blogs.dir/5/files/picture.jpg
example.com/bob/files/picture.jpg
...
7
votes
1answer
511 views
How to disable generation of default image sizes for some custom post types?
I used custom post type, where 'thumbnail', 'medium' and 'large' sized not required. I need to disable this sizes and create function or plugin, where i can set, which image size is required for each ...
7
votes
2answers
3k views
How does WP media uploader create the 3 different sized images, and how can I duplicate it
I have finally!! got this thing I've tried about 12 times to make and 12 different ways, but finally got it to work,... sort of.
I made a custom metabox for uploading and attaching images to posts, ...
7
votes
3answers
336 views
How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
I've inserted a WP 3.5 media uploader into a widget by running this JavaScript when a button is clicked on:
var frame = wp.media( {
title : 'Widget Uploader',
multiple : false,
...
7
votes
2answers
251 views
Force WordPress 3.3 to use Flash uploader
Is there any way to force WordPress 3.3 to use the old Flash uploader instead of the new HTML5 version? (you can read below if you care about why I want to do this...)
I'm working with someone on ...
6
votes
3answers
11k views
Submit post and upload image from front-end
I am trying to do something similar to the above question. I am trying to make users post and upload images from front-end. I have already done the post form and its working.
I just followed and ...
6
votes
1answer
132 views
Listing of all uploaded files in network sites
Can I list all files uploaded by users in Network sites? In Multisite each user can manage their files with their own blog but the Super admin can't monitor all the uploaded files...how can i do that? ...
6
votes
1answer
824 views
What plugin can I use to create a list / slideshow of featured images?
I'm looking for a plugin that will allow the user to upload files, maybe 4-10 that can be used on the homepage as part of a slideshow. I can code the slideshow part myself, if necessary, but the thing ...
6
votes
1answer
93 views
How to make “Upload files”selected by default in Insert Media?
I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media ...
6
votes
1answer
184 views
Save other metadata on image upload?
I am trying to have Wordpress automatically save the "credit" metadata that is stored within images I am uploading. I know this would be entered as a custom post meta field using update_post_meta().
...
6
votes
2answers
647 views
Give users a maximum upload capacity; limit the number of files a user can upload OR limit the number of files per upload
I'm using the Media Library on the front end of my website and I'd like to stop users from being able to spam my server by uploading an unlimited number of files.
As such, I'd like to do one or maybe ...
6
votes
5answers
4k views
Add a Meta Box for uploading a SECOND Featured Image?
I'd like to add a meta box to my posts and page editor that will allow me to upload an image and use it as sort of a SECOND featured image. The idea is that my client will be able to upload an image ...
6
votes
3answers
788 views
Pretty URLs for File Uploads?
Can files such as PDFs be uploaded to custom URLs? I would like to upload a PDF to www.example.com/whitepapers/pdf.pdf instead of www.example.com/wp-uploads/....
I found a plugin called WP Easy ...
6
votes
2answers
161 views
Use a separate custom table (not posts) to handle file upload data
The Problem:
Website that has over 100 photos per post. Could possibly swell posts-table beyond 100K entries within a few years.
The Dilemma:
Would much rather stick to default WP UI for handling ...
5
votes
2answers
232 views
WP 3.3 > Still no option to enable automatic image overwrites?
I was really excited to see the new functionality with the media manager in WP 3.3 (specifically drag and drop uploads and automatic file type recognition)
But I was disheartened to see no relief in ...
5
votes
1answer
3k views
Rename files during upload using variables
I'd like to rename files during upload and set their names to the post slug the files are being attached to, plus some random characters (a simple incremental counter will de just fine) to make the ...
5
votes
1answer
96 views
Which filters or actions to use after a media upload and delete?
When a media (image) is uploaded and the subsequent images are created (all the different sizes), I would like to perform a few actions. It is simple and I basically need only the new attachment ID, ...
5
votes
1answer
106 views
WP 3.5 media manager - how to create a working gallery frame
i am writing a plugin and after hours and hours of searching for any documentation on WP 3.5 media manager i managed to create my custom media frame that is being called when a user clicks on a custom ...
5
votes
1answer
111 views
what happens to existing media files when I switch to year/month directory structure format?
A site has thousands of images in the uploads folder. ISP has threatened to shut it down because it is about to exceed server limits for the max number of files in one directory.
I looked at the ...
5
votes
1answer
256 views
Hide “Add media”, html editor from tinymce
I have a custom post type which supports editor. (WordPress ver. 3.5)
I want to customize the editor for it.
Make it readonly
Hide "Add Media" button
Hide HTML editor
Remove status bar showing word ...
5
votes
1answer
706 views
Contact Form 7 - process form using a PHP script, instead of mailing
I want to use a form from the Contact Form 7 plugin to allow the users to upload a document to my website. The problem is that I'd like to manage those uploads from WordPress instead of receiving them ...
5
votes
2answers
886 views
Any plugin out there that uses WP's internal image uploader?
I'm trying to use the media uploader thing from WP (the form from the pop-up with crunching and all that), and can't figure out how.
Is there any plugin out there that uses it? It would be easier to ...
5
votes
1answer
224 views
Display attachments by ID in a wp.media frame
I'm trying to use the new wp.media uploader frame for an app I'm building. I've read up a lot on other questions, blog posts, etc etc.
The code I pasted below is working already quite fine and even ...
5
votes
2answers
564 views
Media upload finished hook
I'm developing a plugin which uses wordpress's thickbox media library to handle media upload and selection. All is well but for the fact that I would like to automatically 'redirect' to the 'media ...
5
votes
3answers
319 views
Using same directory for storing all uploaded images on a Wordpress network
I currently use a Wordpress network in order to run a number of sites, which all use the same template, plugins and images. As posts appear on a multiple sites, it makes sense to only upload images to ...
5
votes
5answers
767 views
Upload images to remote server
I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
4
votes
5answers
833 views
Large Uploads in WordPress
I'm working with a church that uses WordPress to manage their website and podcast. So far, they have a 200-step process every week for publishing the podcast (I exaggerate, but it is a huge ...
4
votes
1answer
4k views
Upload post thumbnail from the front end
We would like users to be able to upload the post thumbnail when editing posts. How would this be done. I would imagine it would make use of the ajax functions of wordpress.
Any ideas,
Marvellous
4
votes
5answers
6k views
How to increase the file size limit for media uploads?
How can I change the Maximum upload file size? I would like to be able to upload 10Mb at a time.
4
votes
5answers
4k views
Disable image attachment links
Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
4
votes
1answer
576 views
Thickbox hacking - removing fields
Default (big and ugly) Thickbox
I don't like how this Thickbox's page looks at all, I almost never use all these settings fields so decided to get rid off them, at least on pages where I'm uploading ...
4
votes
1answer
1k views
How to add more upload directories?
I have two types of files in my WordPress Media Library, one is for pictures and attachments from posts, the other is for attachments from a custom post type.
I want to organize them separately, use ...
4
votes
3answers
908 views
Attach Files Metabox
Does anyone happen to know how to create a simple "attach/browse" button that can be placed into a metabox which upon clicking it would open a lightbox where the user would be able to view all the ...
4
votes
1answer
153 views
Decrease file size upload in Media
By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code:
function custom_file_max_upload_size( $file ) {
$size = $file['size'];
if ( $size > ...
4
votes
1answer
326 views
Upload file to remote storage
I am looking to overwrite the existing upload functionality to save the file on a remote storage service. The remote storage has an HTTP interface that allow me to post file and return an addressable ...
4
votes
1answer
806 views
Change upload directory for PDF files
I would like to change the upload directory for PDF files only, not for other files. For example, the PDF files would be uploaded to wp-content/uploads/pdf but other files would remain in ...
4
votes
1answer
993 views
how to upload and allow downloads of .mobi and .epub formats
I have downloadable products for sale.
I have created custom meta boxes to hold the file data I need, it allows me to upload fine to the custom meta the .doc and the .pdf files...
However when I ...
4
votes
3answers
752 views
Using Image insert control in code
I am adding additional pages to wordpress backend and I would like to use the built-in image uploader and browser. I couldn't find any examples on how to add it to my form.
Assuming that I have a ...
