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

PHP upload multiple files with different input field names using media_handle_upload

I'm trying to upload multiple images with different names from input fields on my WP site. The images will be attached to the post as metas. postThumbnail will be the post's featured image and ...
-1
votes
0answers
13 views

Maximum upload file size not reflecting to php.ini

My problem is that when I check to wp-admin/media-new.php I see Maximum upload file size: 8 MB. Now I change the php.ini located at /usr/lib/php.ini I change the upload_max_filesize to 64M and ...
1
vote
1answer
14 views

Removal of Media Gallery pictures

When I delete pictures from the media gallery ,does it delete the photos from the post that has been published?
0
votes
2answers
21 views

Why is Wordpress' file upload limit so low? Is changing it harmful?

Why is the WordPress upload limit set to 2mb? This seems prohibitively low, especially when almost everyone has broadband these days. I know this can be overridden, but I was trying to find a reason ...
0
votes
0answers
4 views

Modifying WooCommerce Admin Menu causes Error in Media Upload

I'm trying to modify the WP-Admin menu for ease of use. I'm using standard code-based modifications utilizing the global $menu variable. global $menu; if( class_exists( 'woocommerce' ) ){ /* This ...
0
votes
1answer
15 views

How to create an uploads subfolder on a multisite setup?

I have a plugin which will create a folder inside wp-content/uploads, using this code: //Generate stuff on plugin activation function sample_plugin_activate() { $upload_dir = wp_upload_dir(); ...
0
votes
0answers
7 views

Compress full-size image into a separate custom size

I need to have a custom image size (or else) with the same resolution as the original uploaded image, with a jpeg quality of 60. The reason behind this is because the images must be shown sometimes in ...
0
votes
1answer
20 views

Problem in upload wordpress with net2ftb [closed]

I create a site with free host by auto setting and upload wordpress on it. Now i want to upload a module that i write. But i don't know how to do it ? I hear that i can do it by "net2ftp" Thanks in ...
0
votes
0answers
17 views

How to make READ ONLY on the FILE System?

Let's say the WP site is under attack. Then we want to prevent any FILE WRITINGS, including: Uploading of the New Files Any way of WRITING the new files into file system So that the System is very ...
1
vote
1answer
13 views

Get File Object from wp.Uploader

I would like to hook into the wp.Uploader and get the FileList object containing the file to be uploaded. So far I've been able to extend the uploader using the code below, but I can't quite seem to ...
2
votes
1answer
32 views

Different upload path per file type

I want to have two different paths for different files. For example, I have all .zip and image files all in the same locations. What I am wanting to the have images in one path (eg. ...
0
votes
0answers
9 views

Filename and Extension Gone! Media Upload

Since last night when I try and upload an image (say example.jpg) wp removes the filename and file extension so that it shows up as the following in both the uploads directory as well as the metadata ...
0
votes
0answers
8 views

How to DISABLE auto upload image from url on server?

I need some help please. I'm using Novavideo lite wordpress theme on my website. When i insert an image from url in the post article, my theme i guess automaticaly save the original size of that image ...
2
votes
2answers
118 views

What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?

In the media tab, upload of a valid image file results in display of "HTTP error". Reload of the media tab shows that the image did upload and resize, though. Browser debug tools show that on ...
0
votes
2answers
30 views

Maximum post size?

I use a form to allow users to post tutorials on my website. When there are too many pictures uploaded, it seems like the site reaches a limit and stop uploading them: the post has only the first half ...
1
vote
0answers
20 views

wp.media add context

I have wp.media frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at ...
2
votes
1answer
25 views

Disable drag and upload in Media Library

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site ...
0
votes
2answers
30 views

Installing new theme on running site

I have a running Wordpress site (3.9.6). Now a new theme should be used and for this theme also some customizations have to be made (content, some WP files like page.php and so on). Additionally, I ...
0
votes
0answers
12 views

Remove uploads no longer in Media Library

I have a wp-content/uploads directory totalling > 6GB in images. This is because I'm programmatically inserting posts which come from an API, and due to the old workflow, there were duplicates. So, ...
0
votes
0answers
24 views

Order number as file name wordpress/woocommerce

I'm using wordpress with woocommerce and I installed one plugin for file uploads, which put into checkout page, when the order was placed, that means I already get the order number. Then upload field ...
0
votes
0answers
22 views

Issues with Wordpress 3.9.6 media libraries on XAMPP

I am having issues with the media library of Wordpress on my local Xampp installation of Wordpress 3.9.6. Uploading files to the media library takes a long time and occassionally fails. However ...
0
votes
0answers
15 views

change upload dir

Currently my images are like www.example.com/wp-content/uploads/2015/06/xxxxxx-yyyy-zzzz-photo-no.jpg I want this like www.example.com/wp-content/uploads/xxxxxx/xxxxxx-yyyy-zzzz-photo-no.jpg or ...
0
votes
0answers
15 views

Local Wordpress install plugin wont upload image

So what I have going on is a plugin I am using (simple ecommerence) is not uploading an image locally (using MAMP). This is what I have tried so far: The plugin uploads all the content (name, ...
0
votes
0answers
27 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
58 views

Upload multiple image with media_handle_upload with multiple file field [duplicate]

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 ...
1
vote
1answer
53 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
16 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
49 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
28 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
24 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
83 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
23 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
20 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
21 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
20 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 ...
0
votes
1answer
34 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
84 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
14 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
47 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
13 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
22 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
57 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
22 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
103 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
32 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
40 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
51 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
16 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
32 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 ...