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

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 function ...
0
votes
1answer
13 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
7 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
42 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
20 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
13 views

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

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

Attach and display files from front-end uploader in the back-end post [on hold]

I'd like to create a front-end file uploader on every post created with a custom post type named Assignments. This is somewhat easy I presume; could be done like this, this or a third much better way. ...
0
votes
0answers
10 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
20 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
6 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
8 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 ...
0
votes
1answer
19 views

Generating image sizes when uploading through wp.media

Finding documentation on wp.media is really tough, so bear with me. I'm creating a metabox to attach images to a custom post type. I'm able to get a media frame to open, have it accept uploads, and ...
0
votes
1answer
22 views

using media_sideload_image with a file from theme directory

I'm building a Wordpress site in which an admin can upload a video file from post metabox. After that post is saved and the video file is attached to the post, I used ffmpeg to get the screenshot at ...
0
votes
0answers
22 views

wp_enqueue_media problem

I am trying to build up a form where user can request some post information including feature image. For uploading the image i have used wp_enqueue_media() which works nicely in all free themes ...
0
votes
0answers
20 views

Disable Media Library in Advanced Custom Fields

Ive posted on their forums but no one is answering. When you click "add file" on the field it opens up the Media Libary window, which isnt what i want to happen. id like for it to take them ...
0
votes
1answer
18 views

“page not found” due to hat character (“^”) in a upload file name

I have several uploaded files whose links I have later discovered yield a "page not found" message error, because their name contain the hat character ("^"). Have I to delete and re-upload them after ...
0
votes
0answers
27 views

Media library - Limit images to custom post type

Is there some wordpress magic/plugin that will make the media library only show images that were uploaded to a specific custom post type? I have a custom post type called "artists", I want, when admin ...
0
votes
0answers
5 views

how to create a upload page that sends images directly to other page..?

I want to create a page that have upload button and some text fields.so that when user upload a image that image will directly display to other page along with the values that user enter in the ...
0
votes
0answers
27 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
1answer
22 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
10 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
15 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
1answer
21 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 ...
0
votes
0answers
27 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
45 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
24 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
14 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
36 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
19 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
2answers
49 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
37 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: ...
4
votes
1answer
95 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
36 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
47 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
17 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 ...
3
votes
2answers
97 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
49 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
9 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
24 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
47 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
25 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
54 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
48 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
15 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
17 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
15 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
28 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
27 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
282 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 ...