This include all question concerning the process of uploading file, whether from the WP Admin Pages or from a front end editor.
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
2answers
1k views
How Can I Organize the Uploads Folder by Slug (or ID, or FileType, or Author)?
I want to store all attachments (media) in folders named with each post title.
Example: /wp-content/uploads/my-post-about-stuff/
The folder should contain all media attached to that post.
Is that ...
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 ...
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
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 ...
1
vote
1answer
834 views
exposing attachment uploading to the front end — delicate
i'm probably breaking a few common sense rules here.
is there a way to utilize wordpress' bake in attachment file handling for
an upload form within a theme
template? yes, the front end -- i ...
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
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
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 ...
3
votes
1answer
2k views
media_sideload_image generates blank?
I'm creating a custom post form that is supposed to take an external image and uploads it to the media library and attach it to that post. This should be possible by using media_sideload_image, but ...
2
votes
4answers
3k views
How to restrict access to uploaded files?
I have a restricted area on a website that can only be accessed by logged in users. Fot that I created a page template with a 'current_user_can()' condition.
My problem is that the documents attached ...
0
votes
2answers
2k views
Automatically wrap post image in div
In regards to image attachments inserted into a post, I would like to wrap the img tag inside a div tag for specific design purpose.
Is there a way to do this automatically after attaching the image ...
0
votes
2answers
4k views
How to Fix HTTP Error When Uploading Images?
I am using WordPress 3.4.1 on Ubuntu 12.04 using Apache and PHP 5.3.X
When I login to the dashboard and add a new post. Then try uploading an image to set as a featured image, I get a red box with a ...
0
votes
1answer
813 views
add 'file upload' field to user details
In the backend when a user goes to their detail page they can edit a few text fields. I want to add a custom field that allows the user to upload a file. I found something similar but its only to add ...
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 ...
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 ...
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 ...
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 ...
3
votes
2answers
530 views
Remove tabs from media uploader for a CPT
I use the media uploader in a own meta-box for a custom post type called "premium".
The Thickbox opens after a click of the button in the meta-box and files can be uploaded.
Now I want to remove the ...
4
votes
2answers
726 views
Using media-upload.php to upload mp3 via custom fields
I'm trying to use the Thickbox file upload dialogue with a custom field to allow the user to upload an mp3. What I want to do is to grab the URL of the uploaded mp3 and save it as postmeta (saving the ...
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 ...
2
votes
3answers
2k views
WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
As the recent changes in WordPress 3.5 removed the "full URL path to files" option from media library I am wondering how to set this option to a custom path now?
I need to set my "full URL path to ...
4
votes
1answer
991 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 ...
3
votes
2answers
416 views
How to force Media manager to overwrite files of same name?
I have a widget that works with my theme that expects images named in a certain way, slide1.png, slide2.png, etc...
However, when the user uploads their own images, named slide1.png, slide2.png, etc ...
2
votes
2answers
728 views
How can you upload an image from within a settings page?
Is there an easy way to include an upload box to your settings page?
I am building an Open Graph options page and I like users to upload a standard image directly from that page.
1
vote
2answers
262 views
Protect Uploads in Multisite
I am using WordPress multisite (3.3.1) and am trying to protect uploads from certain blogs from being hotlinked and directly accessed. This is loosely related to How to Protect Uploads, if User is not ...
0
votes
1answer
2k views
How to save Uploaded image in custom option panel?
I'm trying to add a custom option panel to a new template following a tutorial found on NetTuts. I saved all the code for the option panel inside a file called optionpanel.php (LoL) and everything is ...
2
votes
1answer
232 views
Organize uploads by year, month and day
As of now my uploaded files are organized by year and month. But I would like to organize them by year, month and day. I mean like this 2012/10/30/image goes here
PS: There is a plugin available to ...
2
votes
3answers
1k views
How to generate thumbnails when needed only?
I have 1000 images.
How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its ...
2
votes
5answers
1k views
Insert into Post button is missing for certain images
I thought I was crazy, but on some of the images in my media gallery, there is no "insert into post" button. see the picture:
this is only for some images though, and the button is there, like ...
1
vote
1answer
351 views
How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
This post shows how to remove unwanted fields from the media uploader. It works great, but I want to limit it to a custom-post-type and I can't seem to figure out how to do it. I've tried the ...
1
vote
2answers
435 views
Adding file types in wordpress
I am trying to upload java files to my word press blog but it does not let me upload any files with .java extension.
It says ".java” has failed to upload due to an error
*File type does not meet ...
0
votes
1answer
534 views
WordPress does not allow me to upload a .xml file
What's a good plugin to upload a .xml file?
here is the final question for now.. under
Tools: / Import: / WordPress i get this message:
Howdy! Upload your WordPress eXtended
RSS (WXR) file ...
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
...
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, ...
3
votes
1answer
1k views
Use a separate upload folder for custom post attachment upload
So, i'm trying to find out a way to use two separate upload folders, being the default one wp-content/uploads for general media uploads, and another one say wp-content/custom for one specific type of ...
1
vote
1answer
2k views
Restricting access to files within a specific folder [duplicate]
Possible Duplicate:
How to Protect Uploads, if User is not Logged In?
Is there any way at all to restrict direct access to files within a specific folder to only specific wordpress users ...
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 ...
3
votes
4answers
3k views
Frontend Simple Local Avatar upload
I'm using Simple Local Avatars for uploading custom user avatars.
How can I create a frontend page with the avatar upload function?
Below please find the code from Simple Local Avatars plugin:
...
1
vote
2answers
2k views
How to add media from front-end to an existing post?
Golden Apples Design created (as far as I know) the media upload function that many people on WP.A and elsewhere seem to recommend. But all of the Q&As I can find on StackExchange deal with ...
4
votes
1answer
625 views
How to set an upload directory for each media type?
Is there a way I can set a custom upload folder for each media type? for example: .PNGs should be saved in uploads/png, .GIFs in upload/gifs
3
votes
2answers
968 views
How to hide media uploads by other users in the Media menu?
Simply put - how might I completely hide media files uploaded by any other users other then themselves? Id like to disable access to these links & files since they are a way for non-admin users to ...
0
votes
1answer
937 views
Restrict file uploads by extension?
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size?
Bonus question: Can I limit users to only be able view files they have uploaded themselves?
9
votes
2answers
205 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 = ...
4
votes
2answers
563 views
Sharding BLOGUPLOADDIR
I am trying to sharding BLOGUPLOADDIR but couldnt success atm. This is default one:
define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
I am trying to set it:
...
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.