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)

-2
votes
0answers
9 views

Role-specific upload

I am looking for a plugin that allows users of a specific role to be able to upload to a specific directory only accessible by that role, with a page listing the files in that directory. This is to be ...
0
votes
0answers
8 views

How to set custom upload directory per user after moving content directory

I set the content and the wordpress directory of wordpress like described in the codex: define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME'] . '/wordpress'); define('WP_CONTENT_DIR', ...
-1
votes
0answers
8 views

Does such a plugin exist? Email via MailChimp on file upload? [on hold]

I use MailChimp quite a bit with school sites where parents can subscribe to school communications based on their year group. One client was under the impression that the site I'd created her ...
0
votes
0answers
15 views

My deleted media exists jet

I've a problem with my wordpress theme. I deleted some media files (some img) and it's appearing in my Media section (in my wp-admin) without thumbnail, but it's like the file exist. I'm looking in ...
1
vote
0answers
10 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
0
votes
0answers
6 views

Media upload privelages have been disabled for administrators - any ideas?

I have a nearly finished installation of Wordpress that was working fine. Then at some point the permissions for uploading images died for Administrator statuil. Details are: The issue: - I first ...
0
votes
1answer
13 views

How does wordpress name resized image copies?

I've noticed that usually, Wordpress will name a scaled image copy by appending the resolution, like this: image1-200x200.jpg Is this always the case? Are there any special circumstances where they ...
0
votes
0answers
7 views

Images showing up as broken

I'm running multisite on my WordPress and the main site is showing images fine, but the other 2 are showing as broken. My file permissions for upload is the standard 755 and have also tried 744 with ...
0
votes
1answer
14 views

Automatically Insert Into Post when uploading Media

When files are uploaded, I would like the, to automatically get inserted, bypassing the need to click on the "Insert into post" button I use WordPress Multisite 3.5 I tried the following, but it ...
0
votes
0answers
4 views

Using switch blog with media

i use switch blog with an ID ( from the site 1) on multisite ( all other site ID) but in the media URL i get the current site path instead of the switched blog ( site 1 ) switch_to_blog(1); here i ...
0
votes
1answer
10 views

Assigning image to Post-Type won't work anymore: exceeded time?

weird, but for some reason i get suddenly the following error in my Wordpress backend when assigning an image from the "media-gallery" to a post-type. Fatal error: Maximum execution time of 80 ...
0
votes
0answers
7 views

Can't post or upload on all wordpress sites on server

I have a Dev server that I do all of my wordpress development on. Recently (January 17th) I logged in to do work, only to find out that I can't post, upload, update settings or in some cases even log ...
0
votes
1answer
21 views

eval_base64 attach on theme files [closed]

I built custom theme as per my requirements. In recent time my site getting hacked and attacks from hackers. Suggest me with appropriate solution please.
0
votes
0answers
11 views

My images link are sometimes WRONG, why?

I'm having a strange issue at work with a wordpress I only partialy created. So my work needed a wordpress very very fast, directly online, even without any kind of article or page (yeah ... I know, ...
0
votes
0answers
17 views

Exclude some photos in media library

I was searching for filters to exclude some photos from media library. I have an array of image ID, and want them to exclude from media library any idea?
0
votes
0answers
6 views

get image original directory path when select from wp_media

When i select an image, lets say from drive D:/images/01.png from var custom_uploader = wp.media I need this path D:/images/01.png. when i select an image this functions trigger ...
0
votes
0answers
12 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
0
votes
0answers
18 views

Force an image upload form field to display as checkboxes

I'm using a plugin called Media Library Categories which adds category taxonomy to media files, so I can give images a category denomination. It works and displays as checkboxes in the Edit Media ...
0
votes
0answers
16 views

Modify Media Upload Errors

I'm trying to disable Media Uploads but still allow access to the Media Library Module so that the user only has access to user specific images but unable to actually upload their own images. I've ...
2
votes
1answer
30 views

Uploading images: 'ø' get replaced with 'ø'

So, I have 2 sites. One in production, and the another in development. They have the same content and uploads. In production, images with names containing æ, ø, or å gets the character replaced with ...
5
votes
0answers
94 views

Custom “Uploads” Dir: “Edit Image” in Media Library broken

Directory Structure I have customized my (local) install (dev box). The current directory structure is: ./root |- wp (WordPress Core root) |- wp-content (Content and Vendor root) \ |- ...
0
votes
1answer
28 views

Distinguish between 2 instances of admin-ajax.php

I've added an avatar image selector to my profile.php page. I'd like to be able to alter the query that loads the image library using pre_get_posts but I can't find any way to distinguish between ...
0
votes
0answers
15 views

add media to custom folder

Hopefully its a simple question for more experienced Wordpress programmers. I am using <?php media_sideload_image($file, $post_id, $desc); ?> However this function adds the media with a ...
0
votes
0answers
8 views

Security of using uploaded file across two admin submits

I'm writing a plugin that merges two files, based on user input about which file to draw each section from. This means that I have to get the user upload and display it before I can get the user input ...
0
votes
2answers
57 views

Upload Multiple Files With Multiple Fields And With media_handle_upload

I asked this question about few days ago and the answer solved my instantly problem but now when I tried to put many file fields in the form just the first field work because the solution of my ...
0
votes
1answer
22 views

Custom image size in Media Dropdown

I've tried everything you have said, but it's not working on my site. I'm using the below function: function setup_image_sizes() { if ( function_exists( 'add_image_size' ) ) { ...
1
vote
2answers
112 views

Upload Multiple Files With media_handle_upload

I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that: The HTML ...
0
votes
0answers
59 views

WordPress custom setup with “uploads” folder on a separate server; and “themes” and “plugins” on two different servers

I am setting up a WordPress site on Linux (and using Amazon AWS if this matters to you), and would like to do it as follows: A separate server for the DB server A separate server for the "uploads" ...
-1
votes
1answer
281 views

Media upload error

I'm new in WP development. Suddenly I face upload error while media uploading. Even I also deactivated all plugins. Now I'm using WP latest version (4.1). After error msg the image is uploaded ...
0
votes
1answer
34 views

What are best practices to storing uploads in Wordpress?

We've been storing all of our images using the default /year/month/day, but I'm thinking there has to be a better way to store things because everytime that I update a image or pdf. I have to reupload ...
0
votes
1answer
18 views

Reattach media after moving to another server

I moved WordPress from one server to another and imported everything with the standard WordPress importer. As there are a lot of posts and about 10000 images and videos, I uploaded them with FTP. ...
0
votes
0answers
19 views

Uploading high ress images: image data does not exist

I have a reason to let users upload High Ress images. My hostingcompany doesn't allow me to upload more then 8MB. To be able to upload more MB's I did the following: I created a php.ini file and ...
0
votes
0answers
40 views

WordPress media uploader - upload tabs not hiding

I'm in the process of adding a front-end post editor to one of my sites. In doing so, I need to prevent certain users from being able to upload media. I have things "kind of" working but there are a ...
0
votes
0answers
21 views

How can i upload files to a dir other than media library

I am developing a custom plugin . That plugin need to have upload functionality which will not be images and should not be seen in media gallery . How can i set a custom upload directory which can ...
1
vote
0answers
13 views

Images uploaded to the media library has strange colors. However, in the edit screen the color is ok

This is a strange issue that I've never encountered before. When I upload this image to WordPress' media library, it comes out like this (image on the left): This is also how the image appears on ...
1
vote
2answers
36 views

What relationship determines which images appear in 'uploaded to post' in edit/add post media dialog

I would like to know which relationship in the database determines which images are displayed in the media dialog when you select 'images uploaded to post' as the search filter. I thought it would ...
1
vote
1answer
93 views

upload_async.php returns 500 error

When uploading a large file via the Media uploader, I get the infamous HTTP Error problem. I also have the following in the Chrome console: POST http://www.nameofsite.co/wp-admin/async-upload.php 500 ...
0
votes
1answer
96 views

Validate Uploaded Image using WordPress' Built-in Functions?

I have a form that allows users to upload an image. I'm using the code below (which currently doesn't work) to ensure what a user uploads is valid. Can someone help me out and either update my code ...
0
votes
0answers
42 views

Filter wp_get_attachment_image

I'm working on a new WordPress plugin, that will have to change the media library directly. For that I have to overwrite or filter the wp_get_attachment_image function, that class-wp-media-list-table ...
0
votes
0answers
14 views

Send attachments via wp_mail from temporary folder

Is it possible to send attachment via wp_mail, using temporary file, instad of uploading them to any actual folder on server? For example: <input type="file" name="file"> $attachment[] = ...
0
votes
0answers
8 views

Accessing current post data through a function

I'm using ninjaforms on my wordpress site and i have a form that is displayed on my post template. The idea behind the form is give the user a PDF file once they have completed the form. I need to ...
0
votes
0answers
47 views

Add custom field to edit media WP 4.0.1

I try to add a custom field for media edit from WYSIWYG. But the attachment_fields_to_edit filter does not add the field on the edit popup. When you click on a image and then click on the edit icon. ...
0
votes
0answers
24 views

What is the best way to upload a temporary & sensitive file and then delete it when done

What is the best way to upload a temporary & sensitive file and then delete it when done. I'm writing a plugin (eventually for multisite) that allows users with a certain role to upload a .csv ...
0
votes
0answers
29 views

Allow guest file uploads without a plugin

I 'm building a classified web site in Wordpress. Here, I need to allow registered users as well as non-registered users(guests) to add advertisements which are custom posts in my site. All posts go ...
0
votes
0answers
17 views

Uploading two (seperate) files from the front-end

I have a (custom) post which users can submit/post from the front-end. Part of the custom post is 1) an image attachment (postImage) and 2) a PDF attachment (postFile). I am able to get the the form ...
0
votes
0answers
53 views

Restrict access to files to logged-in users (WP + IIS)

I have a WP site, hosted on a Microsoft IIS, server which has both a public and a private, registered users only, section. The private section is a repository of pdf files. I've granted access to the ...
0
votes
0answers
37 views

Make “Add Media” button lead to “Upload” tab instead of “Gallery” by defaut

Whenever I upload a media to wordpress, I have to click the Add Media button, switch to the Upload Tab, then select my file. Is there a way to make the Upload tab the default tab for the media ...
0
votes
0answers
82 views

Failed to load resource at admin screen

So I've done Wordpress clean install in a live server. Everything looks fine and seems to work. However, if I go to the admin's edit page or post and try to add or change the featured image, the Media ...
0
votes
0answers
29 views

media_sideload_image uploads an image multiple times!

i want to upload an image programmatically into wordpress media library and then attach it to a post! i found media_sideload_image function in wordpress codex but when i use it in functions.php file, ...
0
votes
0answers
34 views

Could not upload image in admin panel while making a plugin in wordpress

I am trying to make simple plugin but my problem is image which can not appear in admin panel... Here is my code: class DM_options{ public $options; public function __construct(){ ...