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

media_handle_upload changes the file name

I am using media_handle_upload for my custom plugin using php. base from this example https://codex.wordpress.org/Function_Reference/media_handle_upload and I am using this code base on the example : ...
0
votes
0answers
5 views

problem with updating metabox of upload image

I created a custom post type and metabox for uploading another image. the problem is when i add the image its shown correctly in its place in backend and when i update its also the same i had the ...
0
votes
0answers
7 views

Limit WP Uploader to certain file types only in pages

I have a page where I'm using the WP Editor and allowing users to insert images into posts. I'm trying to limit their ability to only add images and I do this with the following filter: ...
0
votes
0answers
6 views

how to Update multiple Image in registration plugin?

I try to update multiple image upload in my plugin. I hook my code in admin profile part. I get image from usermeta table. My insert multiple image is work but update is not working. I create code for ...
0
votes
0answers
11 views

Plugin “Relocate Upload” errors [closed]

I am using the plugin, Relocate Upload so that I can move some uploaded files to a specified folder. I get the following error when I move a file... Warning: Illegal string offset 'sizes' in ...
0
votes
1answer
18 views

Disable image rename on upload

When I upload an image (test.jpg) with the Media manager it creates the same image with a digit after its name (test1.jpg). I disabled image cropping so files like test-[width]x[height].jpg don't ...
-1
votes
0answers
18 views

How to add upload image on custom post type wordpress [duplicate]

I have created a custom type post on wordpress, when i have added file upload I couldn't save and get the image, so if there is anyway to solve this problem show me how. an other thing how can i show ...
-1
votes
0answers
38 views

add upload image on custom post type wordpress [closed]

I have created a custom type post on wordpress, when i have added file upload I couldn't save and get the image, so if there is anyway to solve this problem show me how. an other thing how can i show ...
0
votes
0answers
23 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
0
votes
0answers
17 views

How to upload multiple Image for use registration form in wordpress?

I have following code in my registration form plugin to upload single image in media library.please suggest me to implement this code to upload multiple image. <td>Image: </td> ...
0
votes
0answers
15 views

How to change html generated by wordpress media uploader

I have managed to change the output of wordpress media uploader using image_send_to_editor exampled below (where the output is image:($url)) However I want to do the same with other files like ...
0
votes
0answers
10 views

Change S2member secure folder location [closed]

I want to change the protected folder for downloads of the s2member plugin, currently it is s2member-files located in wp-content/plugins/ but I want to protect another folder located in ...
0
votes
0answers
10 views

Force aspect ratio in media settings in wordpress

I am showing featured images of posts in a blog page, I'm using medium-size of media settings, but the images I upload doesn't have the same aspect ratio so when I resize my window to a different ...
0
votes
0answers
15 views

How to upload user profile multiple image from frontend in wordpress?

I create my custom registration form plugin at frontend. Now I need that user can upload multiple image and save it on user table and also save it on user profile folder. I use many plugin like Custom ...
0
votes
0answers
14 views

Restrict Media Library to one user except for admins

I have this function to restrict the media library to one user. However I have a few admins who need access to the whole library. How can I make all of it available for admins only ? /*restirct ...
1
vote
3answers
26 views

wp_delete_attachment doesn't delete images in wp-content/uploads/

My function lets users delete their uploaded images in the front-end. However, they're only deleted in the Media Library. That means that they're still in wp-content/uploads/. public static ...
0
votes
1answer
23 views

custom plugin with upload files does not work

I an creating a custom plugin that used shortcodes.. then it will have a feature that will upload files and stores it in wp-content/uploads/ directory.. but it seems I got an error.. Warning: ...
3
votes
1answer
66 views

How to remove list view from media library?

I'd like to remove list mode from media library and let users see grid-mode only. I've seen it's a matter of $modes = array( 'grid', 'list' ); in upload.php but I don't want to mod the core.
0
votes
0answers
35 views

Minimum Image Dimension not apply to every image

I found a way on this site to restrict authors from uploading images if they are smaller then specific dimensions. This worked perfectly for me, till I reached the next problem; I need a workaround ...
0
votes
1answer
38 views

Function that prevents users from uploading photos more photos

Mjello, I'm struggling with this function that prevents users from uploading more photos than what their membership are entitled to. So they have 10 photos to upload. When they've reached 0 they ...
0
votes
0answers
15 views

Get metadata of all files in the media

I need to retrieve metadata of files that are not images such as word, excel or pdf documents. I tried using get_post_meta( $post_id ); and wp_get_attachment_metadata( $attachment_id ); I'm only ...
-1
votes
0answers
16 views

How set for each user owner images folder [duplicate]

I have 200 user in my site. and i need to hide all picture upload from user1 for all ether user when upload it from wp-admin-> media upload. And if user50 upload new picture. So he only see it in ...
3
votes
2answers
72 views

Add inline uploader to plugin option page

I would like to implement an inline file uploader to my plugin's option page as introduced in new media grid view of the WP media library: I imagine having this drag & drop uploader in the page ...
-2
votes
1answer
42 views

Best Photoshop-Wordpress workflow for editing images without re-upload [closed]

When I have images uploaded to Wordpress, there is no way for me to flexibly edit these images. For example, let's say I want to add a colored overlay over an image that has been uploaded to ...
0
votes
0answers
6 views

How to manage assets in gigantic multi-page website?

I need to manage assets in Wordpress dynamically. When I mean assets, I don't mean the media (videos, photos, sounds). In my website, I have custom posts that can get customized with icons, banners ...
0
votes
0answers
18 views

Add/change multipart_params parameter when uploading post image

I'm working on plugin that optionaly manipulates uploaded content (images). I managed to add some additional fields on "Insert media" popup under "Drop files anywhere to upload" text, but I need to ...
0
votes
1answer
35 views

Capitilize Alt/Title Tag in Image HTML, Reorder HTML Output

Someone kindly wrote the two pieces of code at the end of this post for me a few years ago. I'm currently trying to modify them but am not having much luck after an hour of Googling and breaking ...
0
votes
1answer
23 views

Customize WordPress Upload Directory

I'm trying upload certain files to the following custom director: /wp-content/uploads/audio/yyyy/mm However, the year and month directories are not being created properly. They are showing up like ...
0
votes
0answers
34 views

Media Library broken images

When I upload image to WP they randomly appear as broken links I can drop the files on the Media Library or Select the files and some files are always shown as broken. I can delete the files and ...
0
votes
3answers
38 views

Images give 404 after changing default domain

Never encountered this issue before. So I've just moved a site for a client to another server and for some reason all images give me a 404 when I change the default domain in the database (siteurl and ...
0
votes
1answer
34 views

Add Image Size for one Media Category Only

add_image_size is great, but if I want to create a swatch size for colors/patterns on my site, I don't need the swatch size for all of my other images. Is there any way to apply image size by media ...
0
votes
1answer
13 views

limit the access to uploaded files

I have some files that I want to be accessible only to registered users. So I have uploded them to a page set as private. Is this sufficient to prevent unregistered users to download them? I have made ...
0
votes
0answers
15 views

Extra profile fields issue on Chrome

I'm using a custom function to create extra fields on WordPress profile editor, such as birthday, custom messages, etc. Two of them are image fields, so the user can upload custom cover and avatar. ...
0
votes
0answers
13 views

Uploading thousands of images easily from an existing album/subalbum structure into same

Having looked and not finding an answer, I'm asking the wizards. I'm creating a WP site with approx 1500 posts about heritage sites, sites of which I have tens of thousands of photos. I manage the ...
0
votes
0answers
24 views

Force relative path in media library for LAN deployment

I have created a Xampp powered local wordpress install. This will be used at my work as a sort of "intranet" using LAN - I have no intentions of deploying it on a server, as it is not required by what ...
0
votes
0answers
20 views

Is it possible to use media_sideload_image to upload local files?

I want to add media_sideload_image to upload a file programmatically . I've got it working when the image URL is online (e.g. http://etc...) but not when it's a local file from my hardrive or network ...
0
votes
0answers
228 views

Reduce Mobile Image upload size (wordpress)

Just a quick question about mobile image upload size. I am using WP user frontend pro to upload images from both desktop and mobile. Using the mobile when the "image" button is tapped, an user can ...
0
votes
1answer
17 views

Figure inlined width trigger distorted layout

I recently changed my theme to completely new one (fresh), and all my post images suddenly started to break my layout. When I inspect code all images and loaded content that are wrapped in 'figure' ...
0
votes
0answers
40 views

Saving an upload media meta box field

I'm using the answer for this previous question (link below) to generate a custom meta box with media upload functionality: Properly add an upload media button in a meta box field I've managed to ...
0
votes
0answers
35 views

New tab on featured image modal

I need to add a new TOP tab on the media upload modal. I tried with the media_upload_tab hook but is not working because it simply add a new tab on the modal's sidebar that is showed only when you ...
1
vote
2answers
92 views

Maximum upload size changes in php.ini ignored - How to remove upload size limit?

I'm working on a multisite WP installation and I need to import content from other Wordpress sites (.wxr files). When I use the Import WordPress plugin I got the following: The maximum allowed ...
1
vote
0answers
25 views

How to switch to year/month directory structure format from a single folder

Currently we have close to 800,000 images in the Wordpress /uploads folder. It's a single folder and not structured on years and months. Our admin says that there might be an issue with backing up ...
0
votes
1answer
60 views

WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox

I'm currently working with WPAlchemy class to create a metabox in a custom post type (Events from EventEspresso plugin more precisely). This metabox should be able to call the media uploader and ...
0
votes
0answers
30 views

How to configure WordPress to create thumbnails

I was having a problem on a 3.8.0 install where thumbnails were not being created by WordPress. I thought it was the install, so I installed 3.9.2, not upgrade, but completely different install. And ...
1
vote
1answer
21 views

post_id missing from the wp-admin file upload request

I'm trying to upload an attachment using the "Add Media" button placed right above the editor. The request goes to the wp-admin/async-upload.php file. I can put a var_dump($_REQUEST); call there. ...
0
votes
1answer
21 views

Open Media Uploader Link in single post or page

I want to open the media Upload Window like in a single post or page. It is important for me, to have that menu on top, which filters the media Library: This is my current code, which allows only ...
0
votes
0answers
180 views

HTTP error when uploading an image

I know there are already a few posts on this issue, but unfortunately none of those answers were helpful to me. Every time I upload an image, I get an HTTP Error - that's it. Nothing more, no ...
0
votes
0answers
50 views

Add Upload button in Tinymce Editor popup?

I am creating a tinymce popup where I need to have an option to upload file. I searched for a while but could not find any solution for this. Is there anyone who can help me to grab it ? Please ...
0
votes
0answers
73 views

Failed media upload: “The uploaded file was only partially uploaded.”

I am running Linux CentOS 5.8 and I have my web pages using WordPress 4.0. I am trying to uplad jpg photos to server via WordPress, but it randomly fails. I uploaded few photos, and then I get ...
0
votes
1answer
13 views

Wordpress Thumbnail compression depends on the server?

Different image weights were generated in different servers when Uploading images to Media. For instance, an original image of 2.1Mb uploaded to a server generated a 700Kb image, for the medium ...