0
votes
1answer
33 views

How to split my uploaded media into directories?

I am reading the documentation of WordPress Media Library and it seems to me that it doesn't allow me to split my uploaded media into directories. Is it true? Why this choice? How can I implement ...
0
votes
1answer
30 views

What does Wordpress media uploader do to image files on upload?

This question is specifically for images and what optimisation happens to these files when they are uploaded via Wordpress Media Library? Images .jpg .jpeg .png .gif And how is ...
0
votes
0answers
60 views

Change media URL (images)

Similar questions have been posted, but none have been resolved. I'm looking to, programmatically on upload, change the URL of a media file to its URL on a CDN. I.e. modify ...
0
votes
1answer
214 views

file_exists() open_basedir restriction in effect. File(X) is not within the allowed path(s): (Y) in F:\*\*\*.com\httpdocs\wp-includes\functions.php

I installed wordpress on a windows server with Parellels. It is a shared hosting. When i upload images it gives the following warning: Warning: file_exists() [function.file-exists]: open_basedir ...
0
votes
0answers
35 views

Upload in Media Library only shows a part of the picture (incomplete upload)

I have a wordpress application wherein I uploaded a picture using the media library. Unfortunately, my problem is that my picture is only uploaded half-way. My connection is fast. Can you give me tips ...
0
votes
0answers
34 views

Remove fields from Media Uploader (frontend)

I am struggling removing/hiding fields of the Media Uploader that I use in a frontend form. I want to remove all 'meta-information' fields like 'Title','Caption','Description' etc. I got this ...
0
votes
1answer
67 views

Add frontend editor with media buttons for Visitors and display only their media

I'm trying to make a frontend blog post submit for registered users. I have this working without media, now trying to add media. The standard wp_editor $content = ''; $editor_id = 'mycustomeditor'; ...
1
vote
1answer
208 views

How to get the image url in the input box from media library?

I have added a post meta to upload image using wordpress media uploader. Looks like it's a javascript work. I am no good in javascript. I took the js from here: Here is the js code: ...
0
votes
1answer
26 views

Assign one featured image to multiple posts?

I have implemented a front-end form to submit posts. The image upload is handled with the Wordpress Media Library Users click on "Upload Image" Media Library opens Users either select an existing ...
0
votes
1answer
38 views

Switch between tabs on “Insert Media” dialog

I'm writing a file upload plugin and want to emulate original Wordpress behavior: user uploads file on "Upload Files" tab after upload is complete, "Media Library" tab is activated with just ...
1
vote
0answers
45 views

How to upload files with Media File Manager Advanced? [closed]

On my Wordpress I installed a plugin: http://wordpress.org/plugins/media-file-manager-advanced/. I wanted to upload some *.html files into my blog using this plugin by dragging and dropping them. But ...
0
votes
1answer
152 views

Organize media uploads in folders - I have a physical access to (my) server

I'm very new to Wordpress. With the help of my friend I installed Wordpress on my server and finally we have our web online. However, I would like to upload some content in media library but I need to ...
1
vote
0answers
102 views

Users can't upload images on frontend if they haven't got access to the wp backend

I let users create posts and upload/attach images to that post via the frontend. This works fine. However, when I restrict the access to the Wordpress backend (/wp-admin/) via a code snippet like this ...
0
votes
0answers
49 views

Missing Images in Uploads Directory (Server Only)

I recently moved a WP install from our dev server to the clients server. Everything went fine, however, the site is missing a large amount of images. The dev site has the images in the Wordpress ...
0
votes
1answer
1k views

Add metabox with media uploader in a custom post type [duplicate]

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
0
votes
0answers
82 views

WP_Customize_Image_Control is not doing very much

I am trying to add a logo option. The section and the option shows up under Appearance - Customize as expected. It offers me to upload an image. I do that. The image gets uploaded, but the option ...
4
votes
1answer
68 views

What to do with unattached logos and header uploaded via native wordpress uploader?

Normally when we sort unattached images, they include logos and header images too. My question is simple. Is there any method to keep header and logos safe from deletion? Is it possible to attach ...
1
vote
0answers
202 views

Plugin to Import Dropbox Files into Media Folder from the Cloud [closed]

I have been reading about options to use Dropbox as your upload folder and moving files to Dropbox from your server to put them in the cloud this way. What I need is a plugin or script to move ...
2
votes
0answers
81 views

Extend Media Library

The Media Library in WordPress has "Insert from URL" link to the left. It accepts image URLs. It's not said anywhere but if you paste YouTube URL or <iframe> code then it will insert it too. It ...
0
votes
0answers
94 views

upload multiple images in wordpress admin and create post

I have created a plugin with a new page in the admin area. Here I would like to create a function that images can be uploaded and for each image a post is created (with custom meta field data). I ...
0
votes
0answers
8 views

Add a filetype to the permitted upload types? [duplicate]

I'd like to attach an LDraw lego design file (.ldr) to one of my wordpress posts. However the upload media widget complains that the file type cannot be uploaded "for security reasons", which is ...
0
votes
0answers
63 views

Sortable Attachments Using 3.5 Media Uploader with Custom View

I'm using the tutorial by Mike Jolley to integrate the media uploader introduced in 3.5 into a custom post type edit page. The pertinent HTML on the page is this: <div ...
0
votes
1answer
315 views

Wordpress function: limit size, only jpg, jpeg, limit of uploaded files per account

Need help with a function that will limit upload for non admins: Check before upload if file is jpg, jpeg. Check before upload if picture is not bigger than 700kb. Limit uploaded files to 7 per ...
0
votes
0answers
32 views

Add media browser tab for CPT

I created a CPT "Gallery" and wanted to create a new tab in the media browser. For now I added a tab and created a function for it's content: jw_gallery_media_tabs($tabs) { return ...
0
votes
1answer
130 views

Metabox with file upload to custom directory

I've found lots of tutorials on how to create a metabox file uploader using wordpress' native file uploader. However, I would like to have the uploaded file placed in to a custom directory, and I'm ...
4
votes
1answer
62 views

Why are double-periods (“..”) invalid in a Wordpress image filename?

ms-files.php contains the following code fragment: $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( ...
0
votes
1answer
153 views

Add item to media library from blob or dataUrl

I'm trying to build a webcam snapshot recorder. It should take a picture and upload it to the WP media library via ajax / async-upload. Already managed to add a view to the media library. Recording ...
0
votes
0answers
41 views

Attachment Metadata not updated while uploading audio files

Suddenly, I am having some issues when uploading audio type of file in wordpress. previously, when I uploaded .mp3 files, the attachment metadata of the files were updated accordingly, for instance; ...
0
votes
1answer
117 views

Images are not showing up in “Uploaded to this post”

I had to delete all my files of web site for some reasons. Then I've restored the files back to host. But the problem is that; Firstly, I uploaded all the images (about 4000) to upload folder via ...
0
votes
0answers
27 views

How to have one post with two seperate media libraries which upload to and load from their repective directories?

I am developing a project management program for my engineering company. Clients and jobs are custom post types. I have a custom uploader that I have created using wordpress's native uploader to ...
0
votes
2answers
438 views

Disable media library tab for non admins in uploader screen

I am developing a plugin in which i am required to allow front end users to upload media, which I am able to do. But I don't want to let them sneak into media library which comes as tab with uploader ...
2
votes
2answers
305 views

Is it possible to trigger some JavaScript when Media Popup is opened?

On one of my custom posts edit page I have a button that triggers the media popup onclick, with: wp.media.editor.open(); and while it brings up the media manager I'm not sure if that's the proper way ...
0
votes
1answer
48 views

How can I add a Description column to the media library browser screen?

I'm trying to display the description of each file on the media library browser screen. I've found some code that adds a filename column, but I'm trying to modify it so that it will display the ...
0
votes
0answers
62 views

Uploading images from post editor fails with “An error occurred in the upload. Please try again later.”

Also when i want to upload from the media library the progress bar gets stuck at crunching. but with the browser upload it works just fine but the images don't appear in the insert media pop up. also ...
2
votes
1answer
68 views

Is it possible to personalize the Media Library?

When we create a new post and click on Featured Image, I realize that WP creates a folder structure "year/month/image.jpg". I'd like to change that behavior to "category_of_the_post/image.jpg" (or ...
0
votes
1answer
786 views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
2answers
64 views

How can I create more “create attachment” custom field - any idea?

define('MY_POST_TYPE', 'myslider'); define('MY_POST_SLUG', 'myslider'); function my_register_post_type () { $args = array ( 'label' => 'Gallery', 'supports' => array( ...
1
vote
1answer
131 views

Wordpress Media Library showing wrong preview size?

When uploading new (or existing) images to the media library in Wordpress 3.6.1 the preview generated on the admin page/edit media page (eg. wp-admin/post.php?post=8736&action=edit ) is showing ...
0
votes
1answer
87 views

Media uploader & manager: add/remove class on image with checkbox

This seems like it should be fairly simple, but I'm drawing a blank on it: Have a checkbox in the media uploader and media manager that, when checked, adds a CSS class name to the image. It should ...
0
votes
1answer
127 views

Add select field to media uploader that adds a class to the image

I'm looking for a way to add a <select> menu to the media uploader that will have two options: normal image, which will do nothing, and profile image, which will add a CSS class to the image if ...
0
votes
1answer
83 views

Create a post from every image in my media gallery

I'm looking for a good way to create posts from every image in my media image gallery. I've uploaded about 200 pictures and want to create a post for each picture, where I set the picture as a ...
1
vote
0answers
261 views

Adding wp_enqueue_media(); causes problem

I want to add the media uploader in the theme options page. If I add following code in the options page, the media uploader works fine there, but it creates problem in the standard posts featured ...
0
votes
2answers
1k views

How to save media files under custom folder without changing wp-config.php or changing media settings

I want to upload images in a unique folder. Then retrieve the path of this image saved on server like http://example.com/wp-content/uploads/myimages/image1.jpg Now I want to save this URL in a post ...
0
votes
1answer
190 views

wordpress 3.6 media manager cropping timestamp

I am using wordpress 3.6 with its default media manager, I uploaded an image, and then every time i crop it, it create 3/4 new images in upload directory with different name (adding timestamp in ...
1
vote
0answers
108 views

Bulk edit of EXIF data for jpeg images uploaded in the media library?

Although there's a number of plugins that display EXIF data in your posts or remove EXIF data altogether to save space, I couldn't find a solution to manually edit EXIF data for whole bunches of ...
0
votes
1answer
109 views

Broken Media Library

I'm trying to upload media using the media library. I uploaded a couple of images several months back, and the library worked fine, these images are still available as normal through the WP backend. ...
1
vote
3answers
2k views

Add new media uploader at frontend for wp 3.5+

I create a form for user to submit content from the frontend. The only problem is I don't know how to handler the image upload. So, I want to know how to use the WP media uploader in the frontend. ...
0
votes
1answer
87 views

How to detect when a file has been uploaded?

I'm trying to analyze a file after it has been uploaded using a custom file upload field (ACF). Is there a way to do this using a hook? If not using a hook then maybe theres a Javascript event?
0
votes
1answer
360 views

Media Library not showing images when adding to Posts (but retrieving image info via ajax)

When uploading an image to a post/page, the media library doesn't display any images (when there are some), and then 'fails' when you try and upload (although the image is actually uploaded). I've ...
1
vote
2answers
1k views

Image uploading stuck on “crunching”

I have a problem to upload images to the media library when is used multi-file uploader on WP 3.5.2. Single file media uploader works fine. I have tested it with 1k PNG image, which was stuck on ...