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
12 views

Thumbnails produce unwanted gray pixels on white background

Is there a workaround for producing QUALITY "Featured Image" thumbnails of different sizes? WordPress produces compressed thumbnails that contain grey pixels where it should be a completely white ...
0
votes
2answers
47 views

How to download files to Wordpress?

How can I download file to wordpress? I mean, we have a link of a file for example http://example.com/myVideo.mp4 which is a large file. So I'm not able to download it to my computer, then ...
0
votes
0answers
13 views

Pass Taxonomy To Custom Media Uploader

I'm manually editing a specific plugin (Category Images - Zahlan) which adds WordPresses media upload module to taxonomy terms as a custom field via the JQuery using the code below: var wordpress_ver ...
1
vote
1answer
25 views

Customizer: Unique identifier that distinguishes which image upload control is uploading an image

In the Theme Customizer, I've got a custom add_action('wp_handle_upload', 'upscale_responsive_bg_imgs') which upscales responsive background images when uploaded from the theme customizer. It's ...
0
votes
0answers
9 views

Serving images from a subdomain: image upload not working and no error given

I have a two stage Capistrano setup using Wp-Stacks. I would like to have a common image upload directory for them, since the image dir is 2GB, don't want to duplicate that. I'm trying to serve ...
0
votes
0answers
12 views

Files larger than 500 kilobytes are not allowed

This is a very strange problem as illustrated on the picture
0
votes
0answers
37 views

Used Duplicator to transfer a site. Now my media uploads aren't working

I deleted an image from the Media tab and when I tried to upload another, I started getting this error: The uploaded file could not be moved to wp-content/uploads/2014/10 I tried CHMODing the ...
0
votes
1answer
23 views

Where does wordpress store the FTP credentials?

When wordpress asks for FTP information to upgrade, you type it in and then it seems to store it for future use (for future upgrades, and maybe also for media uploads?) Where does it store these ...
0
votes
0answers
14 views

The most of the images don’t appear, although URLs are correct

I don't understand. The most images on my website Eslovaquia.sk don't appear despite the fact that all are in a valid folder. E.g. logo. There is broken-image-icon instead the logo in the header. ...
0
votes
0answers
34 views

Wordpress Media Upload Plugin 3.5 JS PHP

I have a small issue creating a small plugin. I am trying to achieve a gallery meta box using Media Upload 3.5. At this point I am able to upload images, but when trying to update the image. I wont ...
0
votes
1answer
16 views

Run filter if only it was run from specific admin page ( 'upload_dir' changed )

The situation is following: In WordPress, there is a plugin page created with optionality to upload media files. The code added to this plugin, that changes the upload directory by adding of filter ...
0
votes
0answers
10 views

Problem uploading file with wp_handle_upload

I use the wp_handle_upload function in my plugin to upload a file to the uploads directory. The plugin works fine on my local development site, but when I use the same plugin in my online website I ...
0
votes
0answers
8 views

Thickbox / image upload empty on library

Uploading images on WordPress using metaboxes is always a pain. Plugins desactivated, I have an empty media library using an upload button in a metabox. The count is good though. Scripts are ...
2
votes
0answers
62 views

Saving data-URI to media library

I have a TinyMCE plugin that generates PNG images using HTMLCanvasElement.toDataURL() (MDN). Currently, I'm just displaying them on the backend by putting the data-URI in an image tag, but I'd really ...
0
votes
1answer
21 views

How to upload unknown file type?

I've already read about mime types in wordress and how to add them, but I can't find any documentation about the correct type of files. For e.g. after a lot of research I find out that the epub ...
1
vote
0answers
30 views

How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite

I have a question that I thought the below thread would provide the answer to, but things in WP have changed so it doesn't quite do it, although it helped my understanding of things. How to protect ...
0
votes
3answers
36 views

Missing a temporary folder despite settings in wp-config.php

When trying to upload media to my Wordpress 4.0 running on a shared Apache 2.2.14, PHP 5.3.2 host, I get the error message "Missing a temporary folder". I have no influence over the php.ini which is ...
0
votes
0answers
9 views

Adding photoship mime type in plugin

I read over other posts about adding mime types, but I am still unsuccessful. Here is the code in my plugin: add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( ...
0
votes
0answers
9 views

Preventing a user from inserting a gallery using the Media Uploader, causes errors

As the title suggests I am trying to prevent a user from inserting galleries. This can be achieved with: function remove_media_library_tab($tabs) { if(!current_user_can( 'administrator' )){ ...
3
votes
1answer
127 views

Create image formats with different qualities when uploading

I'm trying to come up with a solution where the generated image formats cover both responsive and high-resolution aspects when uploading a new item in the WP admin. I've put together a set of formats ...
0
votes
1answer
18 views

Allowing images only when uploading files

I want to allow users to upload .jpg .png and .gif files only. I've tried hooking to the wp_handle_upload_prefilter filter like this: function custom_upload_filter( $file ) { $mimes = array( ...
0
votes
1answer
23 views

Wordpress File URL Path Incorrect

I have images uploaded to a Wordpress site and they can be accessed by the following URL: http:/eatdrink.ca/content/uploads/2014/09/FoodWebSummer-main-420x194.jpg but Wordpress is giving the ...
1
vote
1answer
29 views

Is it safe to allow non-admin users access to media uploader

Hi fellow Wordpress users :) I wanted to ask is it safe to allow non-admin users access to WordPress media uploader. Can they inject a virus while uploading media? How is WP system fighting against ...
0
votes
0answers
8 views

Copy image url to my own field in media upload

i have add new field in media upload for slider plugin. what i don't get it how to copy the image url to my own field. look at the screenshot:
0
votes
2answers
59 views

Theme stops media uploader from working

I took over a website from a previous developer that built most of the site. Because the theme was a custom one, he chose to do it using Toolbox. The site has been standing for just over a year, and ...
0
votes
4answers
63 views

How can I reduce file upload size?

Current file upload size limit is 128MB. I want to reduce this to 1MB. I do not have access to php.ini file. I do have access to .htaccess and I could use this solution. But why isn't there a method ...
0
votes
1answer
37 views

How to send email in wordpress with more than one attachments

In my plugin, there is a contact us form through which users can upload multiple files and it will be uploaded into wp-contents/uploads/2014/10 folder. Uploading is working, but now I need to send ...
0
votes
0answers
12 views

Multisite Uploads

I have a wordpress multisite installation for multilingual press. Right now everything works fine, but I have a problem with the uploads. I have some custom fields (acf) for picture uploads, ...
0
votes
0answers
19 views

Custom wordpress media upload tab with the attachment browser

I've managed to add a new tab to the "Add Media" window with the help of this answer. Now I'm trying to add a custom gallery type in this tab. I'm trying to add the default attachment browser in this ...
0
votes
1answer
38 views

How to change the value “uploaded to” in the media library (Wordpress 4.0)

When I open my media library and go to the detailed view i get the list of the pictures contaning this row: Is there a way/plugin to change the "uploaded to" setting for one spesific picture? (My ...
0
votes
1answer
70 views

Image upload error?

I have searched everywhere for an solution and even though I have found others with similar issues it seems they are not the same. I have a fresh WordPress install and have it setup for multisite. ...
0
votes
0answers
12 views

wp.media frame refresh

I have a custom frame for selecting media files inside my plugin. Whenever I upload a new file from within the frame, the files in the default media manager get refreshed, but in my custom media frame ...
0
votes
1answer
32 views

Remove Media File Items From Server That Do Not Exist in Media Library

Pretty much as the title suggests I have items on my server (images mostly) that do not feature anywhere in the media library. What is the best way to delete these? Is there a plugin or would I need ...
0
votes
1answer
25 views

How to set uploaded image as featured image wordpress

How do I set an uploaded image from form to be the featured image of the post. Here are the basics of my code: User fills form and uploads image. Submitted form data appears as a custom post type. ...
0
votes
0answers
18 views

Cannot upload with 777 via plupload on Ubuntu 14

I'm using plupload in a HM plugin to let the users upload there logo. I just noticed that it only works on windows local server and in production mod. But on my test servers (2 servers both with ...
0
votes
1answer
57 views

XML-RPC: How to add media caption to uploaded image?

I need to migrate non-WP data from an SQL database to posts in WP, and thought that using XML-RPC in a closed environment before deploying was a smart solution. This is my first WP project, so I'm ...
0
votes
0answers
28 views

Is there any way to Integrate WordPress with Imgur for Image Hosting

I wanted to use Imgur for hosting all my WordPress website images. Till now I know how to integrate Imgur with a simple form using an upload script. The process is well explained at Subin's Now what I ...
0
votes
0answers
18 views

Insert into post or

I am about to delve into wp media upload/edit code, I want to add another option where you can insert into post I want to add a use as title graphic option. Hoping someone may have braced this before ...
0
votes
1answer
13 views

controlling whether upload is attached to post or not

I'm using the new (3.5+) media upload API to open a media modal dialog from a post meta box, and select a file from the media library (as per ...
0
votes
2answers
41 views

Can't upload media, permissions are correct

I did a manual backup and re-install of a WP site, and it worked fine. Then my client updated some plugins, regretted it and asked me to restore the site to its previous state. I used the same backup ...
0
votes
1answer
33 views

Use WP_Filesystem to list files in directory

Is there a way to list files in a directory using WP_filesystem instead of something like: function listFolderFiles($dir){ $ffs = scandir($dir); echo '<ol>'; foreach($ffs as $ff){ ...
0
votes
0answers
35 views

Cannot add custom image uploader for custome post type in custom wordpress theme

I am trying to set image uploader for a custom post type on a Theme I am developing. The aim is to get it to insert the image URL into the textbox of id "meta-image" but instead it inserts the image ...
0
votes
1answer
23 views

Upload image from a URL and assign it as a Featured Image to a Custom Post Type?

I am 90% done building a plugin that uses the Amazon.com API. What I have built is a Books Custom Post Type. My Books CPT has Custom Taxonomies for Book Category, Book Tags, Book Author, and Book ...
0
votes
1answer
27 views

How to Make Thumbnail of Post Stay Animated

When I upload my post with an animated .gif, the thumbnail generates into a new image and doesn't stay animated. It will stay animated inside the post which is great. It seems to resize the .gif image ...
0
votes
1answer
50 views

wordpress media library shows empty images

I have copied the my old site files and moving those into new site. i have changed the url in db, and uploaded the files in new server. everything works fine except the media show black images .can ...
0
votes
1answer
49 views

adding image to post thumbnail from another server

i have a image gallery site, each post in site have thumbnail and image in post, now i want get file server for uploaded image. how can i add thumb image from another server? or how can i change the ...
0
votes
0answers
18 views

How can I set up WordPress/PHP to upload images as myself?

I just noticed that my VPS has been uploading images as www-data for the past 6 months, ever since I moved my WordPress install over to my new system. I've been told time and time again that my ...
0
votes
1answer
39 views

How do I enable the customize theme page to accept svg's?

I'm currently working on a theme that enables the user to upload a logo via the customize theme page. I want the user to be able to upload an SVG as a logo. Wordpress does not allow SVG's to be ...
0
votes
2answers
82 views

Unable to create directory

i have been noticing of late, after i upload my sites to a different server, i seem to have some sort of upload problem once i have copied and moved site using ftp to a new host i then can not ...
1
vote
0answers
40 views

How do I get around “Sorry, this file type is not permitted for security reasons”?

I was wondering how I could allow .tiff files to be uploaded in my wordpress site. I get the message "Sorry this file type is not permitted for security reasons". This question has been asked in ...