This include all question concerning the process of uploading file, whether from the WP Admin Pages or from a front end editor.

learn more… | top users | synonyms (4)

0
votes
0answers
8 views

upload custom field in nav menu

I want to add image uploader for each menu element in appearance menu i have created a new walker class Walker_Nav_Menu_Edit_Custom extends Walker_Nav_Menu {} can't paste the walker here beacuse ...
0
votes
1answer
21 views

Upload multiple image with media_handle_upload with multiple file field

I need to add multiple images with image descriptions form wp admin. Admin Form: <label for="image[]">Image</label> <input type="file" name="image[]"/> <label ...
-3
votes
0answers
9 views

i cant see my former contents and it doesnt upload latest ones

for more than three months i created a blog in wordpress, but i created it online without installing wordpress in my computer, since then i have been managing my blog successfully until now that i ...
1
vote
1answer
33 views

“Add Media” only shows “Full Size” under Attachment Display Settings

I can't seem to figure out why this dropdown is only showing "Full Size" as the option. I have the default "thumbnail", "medium", and "large" set in Settings, and I've also added a few custom sizes in ...
0
votes
0answers
13 views

Uploaded files URL broken since server change

I moved my wordpress website from my old server to my new. Everything works, except that every uploaded files (PDFs for example) with accents (é,à, and so on) in the file name got their URL broken. So ...
0
votes
0answers
19 views

Add media button does not insert image in the editor

I am using twentyfifteen theme. And all plugins are disabled. When I am trying to insert any image in the content of any page , the add media opens the popup, I choose the image, and click on the ...
0
votes
1answer
17 views

wp_enqueue_media() and upload_mimes problem

Using the following code, I'm trying to allow only certain image types to be upload/selected with the WordPress media API. So I'm using add_filter on upload_mimes to restrict the mime types allowed. ...
0
votes
0answers
16 views

How to display an html page in my wordpress site

I have a contact form seven and database extension plugins installed on my site and I am using it upload some files. I filtered the form data submitted to the database and stored the files on my ...
1
vote
1answer
45 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
22 views

Removing “featured image” & “create a gallery” in sidebar

I was wondering if it was possible to remove "featured image" & "create a gallery" in the sidebar inside the "add media" button on "add a new post" page on my wordpress? ...
0
votes
1answer
19 views

Changing titles in Uploader for “Posts”

When I click the "add media button" within the Visual Editor in the "Add a New Post" page in my blog, there are some titles I would like rename, http://puu.sh/ikJ9g/79e0cb4497.png I would like ...
0
votes
0answers
13 views

Creating a WordPress admin section to handle file uploads and trigger a function

I need a little help on this one. I have written a series of functions that parse an excel spreadsheet with multiple worksheets. It works perfectly and does exactly what I need it to. Database tables ...
0
votes
1answer
19 views

How to prevent intermediate images from being created but keep the sizes available for selection in the media library?

I am writing a plugin that will make use of an image service for resizing images. I want to keep the ability for users to select different image sizes, but I don't want Wordpress to create ...
0
votes
0answers
17 views

use plugin to copy media files from primary site to another network site

I have developed a plugin (specific to our network) that will copy certain posts from siteA to siteB. I can handle everything except the images which look to be specific to one site via the media ...
-2
votes
0answers
19 views

Featured image upload option not working properly?

I'm trying to make a new plugin. I hope it's maxim complete. but now I face a problem. When install my custom plugin then the Featured image upload option not working properly. It's show like a media ...
0
votes
1answer
28 views

zip unzip attachments in wordpress

my client using easy digital download plugin for sell their photos. They upload a zip file that contain many photos and sell this zip file. My need is to extract this zip file and display the images ...
0
votes
2answers
47 views

tb_show not showing a media upload window . custom plugin

I can't figure out why the media uploader doesn't show. I'm trying to do a media upload window so the user can upload a file. The problem is, when I click on the Upload button, nothing happens, the ...
1
vote
0answers
13 views

Add fields to the WordPress media uploader

I am trying to add an URL field to the WordPress media uploader using following code: /** * Add an URL field to gallery attachments * * @param $form_fields array, fields to include in attachment ...
0
votes
2answers
37 views

New wordpress uploads are broken

I have been running a network of WordPress sites (Multisite) since version 3.8.1. I've been constantly updating plugins and core. At some point, I discovered that uploading new images yields broken ...
0
votes
0answers
10 views

Provide New/Existing Users with Pre-Uploaded Media Images?

When a new user joins my site I want to give them the option of using pre-uploaded images. As of now, when they go to "add media" it's BLANK and they can only view files they upload. How can i ...
0
votes
0answers
15 views

Attachment Filter not displaying correctly in Media Uploader

I'm working on a plugin that uses the Media Uploader. Everything's working fine except for one little thing. When rendering the Media Uploader Modal box, it shrinks the Media Attachment Date Filter ...
3
votes
2answers
49 views

Could a large quantity of files in the uploads folder affect performance?

There is a site, where images are not organized into month- and year-based folders. There are more than 20 000 of images in one folder (uploads) now. When I try accessing the folder via a file ...
0
votes
0answers
21 views

After I upload a file to library its name converted to dashes

I've a problem when I upload Attachment file (any extension) with Arabic name, for example اسم الصورة.jpg, It renamed to -------------.jpg ! I've plugins to crop the uploaded Image, I tried to ...
0
votes
0answers
71 views

Front-end Ajax File Upload

I'm working on a project where registred users can upload file to a specific post type. For a more fluid navigation, I'm making this whole part with Ajax, so the page never reloads. However I'm having ...
0
votes
1answer
19 views

Save the outputted image into the Media Library, with a different filename and extension

For example, I have this "/image.php" file in my "/theme-directory": header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream'); ...
0
votes
0answers
36 views

Upload folder permissions suddenly changed on all WP sites on same server

All my media linrary uploads were working until today when I tried uploading some pdf's and images to one of the WP sites on my server. I checked the other sites on same server and same thing ...
1
vote
0answers
41 views

How to update post meta on uploaded image from a custom form?

I have a custom PHP submission form wherein if I submit the form the entry will be created as a custom post. I am able to update post meta boxes for textareas and input fields but can't get uploaded ...
0
votes
0answers
14 views

plupload.predictRuntime ERROR in Wordpress when Media Upload

plupload.predictRuntime ERROR in Wordpress when Media Upload. Shows this screen: It doesn't uploads or shows any image, and the error shown at debugging in Chrome is:
0
votes
0answers
21 views

Media Library, Files not displaying once uploaded. Recent problem

have spent past two days trying to troubleshoot problem with uploads to Media library. In fact, things are now worse than they were yesterday, when at least they were present in edit mode. Since ...
0
votes
0answers
12 views

How to find out if all enqueued files are uploaded?

I am using a script that identifies jpgs and pngs by their filename and adds them to various posts. I would like to auto-run the script as soon as the last image of a bunch of files is uploaded ...
0
votes
0answers
15 views

No file when adding media directly to a post

I am working on a plugin to do some processing of uploaded images. The code below works fine when I upload an image using the media library. However, when I try to upload media directly into a post ...
1
vote
0answers
17 views

How to allow logged out users to upload media?

How do i allow non logged in users access to the media library for uploads? I am making an anonymous blog, i got posting with images to work, but i need the media button above the editor to work so ...
0
votes
0answers
21 views

Image Upload from URL doesn't work

I'm using the latest version of WordPress and a custom theme. I can upload images from my computer but not via URL. Using URL, the image DOES upload in /wp-content/uploads/ directory, but the post is ...
0
votes
2answers
72 views

Custom Upload Adds Ghost File

I've tried this on a fresh install on the twentyfifteen theme. I'm adding a metabox to pages which allows uploads - Whenever I upload a file on a new Page it uploads the file but also adds another ...
0
votes
0answers
41 views

Uploaded Images Not Showing

I'm trying to upload images to my website through the media library and the upload goes just fine. However the images won't shown, not in the gallery neither in posts. When I go to the link of the ...
0
votes
0answers
24 views

Replace upload system/Override wp_handle_upload

I am going to be running a WP site on Heroku, and none of the current solutions for the media library fit my needs. There is a system for Amazon S3 (not using because paid), and a mapping system for ...
0
votes
1answer
42 views

WP upload/select image , isn't this a security issue?

If in image upload frame I select a zip http://prntscr.com/6ypjlv, it does not show it in list of files but it is up http://prntscr.com/6ypjvp shouldn't we only be able to upload image types if ...
0
votes
0answers
10 views

Nothing works with integration mediamaneger into metaboxes

When I try to put button upload an image nothing happens. what's wrong with this? I put meta-box-image.js into my folder in my theme add_action( 'admin_enqueue_scripts', 'prfx_image_enqueue' ); ...
0
votes
0answers
16 views

How can I hook and edit on the fly an image uploaded

I'm new in wordpress plugin development and I'm trying to hook my function to one of wordpress's upload / attachements functions. My target is to: - hook to wordpress function (I've tried: ...
0
votes
0answers
67 views

Workaround for PHP Limit for image upload: How to use a local installation to get images online?

I have the common problem while uploading images, that I get the fatal out of memory error. Fatal error: Out of memory (allocated 40632320) (tried to allocate 5120 bytes) in ...
6
votes
2answers
184 views

How to add new tab to media upload manager with custom set of images?

I would like to add new tab to upload manager and inside list images from theme_folder/images/patterns I tried something like this to add a tab but it does not work for me since it is adding tabs ...
0
votes
1answer
79 views

403 (Forbidden) delete file image in themer folder

I'm having trouble with permission to delete files that are within the theme folder. All folders and files are with permission 775 and there is no error in the code , because when I use the code in a ...
0
votes
0answers
9 views

Why does wp_insert_post take longer than media_handle_upload?

I've got a page on my Wordpress site where users can submit posts or documents through the front end. I use wp_insert_post for the posts, and media_handle_upload for documents. wp_insert_post takes ...
0
votes
1answer
119 views

Insert media while posting is not working with new wordpress update

Insert media while editing or adding post is not working since the 4.1.2 update. But I can upload media through media manager itself. I didn't change anything in the site today, only the automatic ...
0
votes
1answer
39 views

Update all images url imported from HTML pages

I have to copy content from different website. I copied whole webpage and paste it in my post. All works fine. I also get images in my post but they are still linked to older website. Is there any ...
0
votes
1answer
100 views

PHP error when trying to upload .mp3 files via Media Library [closed]

When I'm trying to upload a sound file (mostly .mp3's) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such ...
0
votes
0answers
13 views

Disable Media uploader to users

Is it possible to disable the Media uploader to anyone lower than an admin, but have the select file(s) window show?
0
votes
1answer
75 views

media sideload image not working with JPG file

media_sideload_image function not working for image url with JPG extension, its working fine for jpg (http://example.com/image.jpg) and png (http://example.com/image.png) but not with JPG ...
0
votes
0answers
20 views

Password protection only on advance custom field download file

How should i protect password when user click on file name and before it starts downloading it asks for password and after correct password downloading will start. I do not want password for whole ...
0
votes
0answers
22 views

Cannot upload any image into wordpress after changing from multisite to single site

I have recently changed a site from multisite to single site by changing and commenting the parameters in the wp-config.php. After doing so I cannot upload any file into the media library. The upload ...