Questions tagged [uploads]

This include all question concerning the process of uploading file, whether from the WP Admin Pages or from a front end editor.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Loose images in uploads folder

thanks for viewing. The uploads folder of this site has hundreds of loose images after someone turned off the folder structure for a year. These images are being used in older posts so not ideal just ...
0
votes
0answers
8 views

Multisite redirect upload path from server 2 to server 1 with haproxy

I have 2 servers with Wordpress MultiSite installed. I also have a server with haproxy installed. haproxy server: 10.10.10.10 site - 1: 10.10.10.11 site - 2: 10.10.10.12 All requests coming to the ...
1
vote
1answer
15 views

Plugin upload to install

I am getting Please select a file issue while trying to upload a plugin ZIP file.
1
vote
0answers
11 views

How to upload images from wordpress front-end (the first image must be thumbnail and the rest without first must be in gallery woocommerce product)

How to set first image from $_FILES array to product woocommerce post thumbnail and the rest put into woocommerce product gallery. I have this code: if ( ! empty( $_FILES['thumbnail'] ) ) { ...
0
votes
0answers
8 views

upload a file with other information as separate requests to backend

I am building a backend which allows the user to upload a csv along with some other information. My current approach is using a multipart form in which user can upload the file and the data together. ...
0
votes
0answers
21 views

How to delete original image file after upload and resize

When I upload an image named image.jpg, Wordpress creates image-150x150.jpg. How can I delete image.jpg and keep just the image-150x150.jpg in function.php, because I want to optimize my disk space ...
0
votes
0answers
17 views

Is there a way to make the default image sizes refer to the full-sized file?

I'm offloading all media files to S3 and serving them through Imgix, who perform all compression/resizing on the fly. To prevent WP from producing extra files, I've removed the default image sizes ...
0
votes
0answers
8 views

Upload array of images from external api to media library

I'm new into wp and I'm trying to upload an array of Urls into the wordpress media library programmatically. I do have a call to an external api and I save the images Urls into an array. <input ...
0
votes
0answers
10 views

Powerpress upload a podcast without creating a post for it

Hi Im trying to upload a podcast using PowerPress but without creating a post for it on website as the podcast will be listened to using podcast.player. I don't mind creating the page as private but I ...
0
votes
1answer
24 views

Restrict Image Uploads to a Certain File Type

I'm a content manager and want to make sure that all images uploaded by my writers onto WordPress are in JPEG format, rather than PNG as this slows the site down. Is there a way for me to check the ...
1
vote
1answer
26 views

remove_accents does not seem to work (when used inside sanitize_file_name filter)

I am trying to automatically remove accents from uploaded files through WP administration. This is my current approach (functions.php): add_filter('sanitize_file_name', function($filename) { ...
0
votes
0answers
19 views

Convert GIF to MP4 on image upload and serve URL to converted file

What hook would I use to tap into newly uploaded files for converting GIFs using ffmpeg to MP4? New to plugin development.
1
vote
2answers
17 views

How can i attach the attachment-ID to the user profile image?

I have used custom php form for uploading image via ajax. And has successfully uploaded the image and getting the attachment id & the image url also, Is there any way to attach the attachment id ...
0
votes
0answers
23 views

Front end Ajax custom file uploads with multiple file return 404 not found, single file upload working perfectly

in the templete file I gave the below code, <input type="file" name="files[]" id="files" multiple onchange="javascript:updateList()"/> <div id="...
0
votes
0answers
12 views

Hook for upload completion?

I'm trying to execute a command after a file has uploaded, but I'm not getting very far. wp_handle_upload_prefilter fires before the file is fully written to disk and moved from its temporary location,...
1
vote
1answer
37 views

I made a website using WordPress, but the server is ColdFusion, how can I make it work?

I made a website using Wordpress, and when it came time to turn it live, I was told the site server uses Coldfusion. I don't know anything about it but they claim it wouldn't work. Is there anything I ...
1
vote
1answer
30 views

How to replicate Media Library “Add New” on Plugin Settings Page

When you click the Add New button next to the Media Library page title... It opens the Drop files to upload template... I want to replicate that on my plugin settings page. Ideally using default WP ...
0
votes
0answers
13 views

Is there a way to enhance image uploader with crop option?

If you use one of the default themes you might find that the custom header upload or logo uploader in customizer allows you to crop right in upload screen. Is there a way to do that in all upload ...
0
votes
1answer
29 views

My image rotate 90 degree

For some reason, my pictures after being published on the site are turned upside down by 90 degrees, and everything looks fine in the admin panel. How to fix it ?
0
votes
1answer
65 views

Can't upload Images to Wordpress - Error 500 Response

I'm having a really frustrating issue whereby I can't seem to upload any images to Wordpress in a post content or via the browser uploader, multi-file uploader. When uploading a single image directly ...
0
votes
1answer
31 views

Change Image folder Locations

I currently have a site that has a number of custom post types. I want to ideally have the following structure /wp-content-uploads/posttype/postid/xxxx.jpg. All the images are attachments of the posts ...
0
votes
0answers
24 views

Image upload in custom theme settings page

I need to upload a logo image and set other options on a custom settings page. I can't retrieve the URL and upload the custom image, what is wrong with my code? <?php /*** New menu item ***/ ...
0
votes
1answer
39 views

Correctly using the root directory for media uploads?

I am aware what I'm attempting to do is not recommended - please don't reply just to tell me this. I have set the uploads directory to root by adding define( 'UPLOADS', '' ); to wp-config.php, which ...
0
votes
2answers
25 views

An error has occurred during the upload process in wordpress version 5.3.2

I need your help , i try upload to wordpress an image but there is error ‘An error has occurred during the upload process in wordpress’ , please help me find solution. ASAP Note : this website http://...
0
votes
0answers
20 views

Can't upload mp4 for security reasons

Never had an issue uploading mp4 files before on my wordpress site as they seem to be whitelisted by default. However, today I keep getting an error message saying there are not permitted for security ...
1
vote
0answers
15 views

How to stop thumbnail generation from some images and different size thumbnail generate

I have 4 Post Type, and each Post Type has images with different size. Is it possible to choose not to create thumbnail images when uploading an image or to create specific images size for each post ...
0
votes
1answer
35 views

An error has occurred during the upload process in wordpress 5.3.2

I need your help , i try upload to wordpress an image but there is error ‘An error has occurred during the upload process in wordpress’ , please help me find solution. ASAP Note : this website http://...
0
votes
1answer
37 views

WordPress suddenly starts uploading media to an old (backdated) folder

I've seen a couple of people ask about this but without a general conclusion. It worked until recently, but recently all media uploads from the media upload tool end up in an old folder, 2019/10, ...
0
votes
0answers
22 views

Wordpress multisite share media across sites without a plugin?

I have googled this for couple times and went over all links, all I could find is plugin solution. I am using multsite for manual translation, however all images that are used are same. I want to ...
0
votes
0answers
18 views

Having issue in feature image upload from frontend. We used “Wp User Frontend Pro” Plugin

In frontend side. feature image can not upload. Its showing error like this: Showing error like: Please provide solution.
0
votes
0answers
17 views

Delete original images after resize

I've read previous questions about the argument but, it seems no one perfectly fits with my goal. I've noticed that, after uploading an image, Wordpress, correctly, creates all the thumbnail needed. ...
0
votes
0answers
22 views

File upload confirmation message - how to delete

After I upload a file, the file location appears on top of the page. I think this is a default WordPress setting which acts as confirmation to the user that their file has been uploaded into the "wp-...
1
vote
1answer
20 views

Filter medias from the Media Uploader (wp.media) modal with a post meta

I would like to have a media uploader modal that displays only image medias having a specific post meta, let's say 'my_image_meta'. How could I achieve this ? Here's my actual code, which just filters ...
0
votes
0answers
20 views

Updated wordpress missing image upload area

Our wordpress updated yesterday. We are on version 5.3.2. Since the update the upload files function within a page is blank. I have included a screenshot, I wondered if anyone else has had this ...
0
votes
0answers
20 views

Findout which user account uploaded an image to WordPress

I have this issue with https://matchmaker.lk/profiles/ Where users will be able to create profiles and upload a profile picture with gallery pictures. However, sometimes they get interrupted or some ...
0
votes
0answers
23 views

Limit image resolution on upload file for specific field

I use Woocommerce ,when add product I have a form with two "upload file" fields. (product image field) and (product gallery images field). when the user uploads an image for the first field (product ...
0
votes
1answer
46 views

Custom filename when pasting an image from clipboard

I've used a plugin with the classic editor that enabled me to paste images directly from the clipboard, into the post. But only used this when the filename did not matter seo wise. With the Gutenberg ...
0
votes
0answers
12 views

Limit image resolution on upload file for specific field woocommerce

when add product I have a form with two "upload file" fields. (product image field) and (product gallery images field). when the user uploads an image for the first field (product image field) I ...
0
votes
0answers
12 views

Wordpress Multisite images randomly gets 404 error

we have a Wordpress multisite and the images on the subsite randomly gets 404 errors (not all of them). When you upload multiple images in the media library, some will work fine while others will get ...
0
votes
0answers
11 views

Restrict uploads content view only admin user

I have created new website and users are uploaded their documents into wp-uploads/documents/user_name folder. The file path will show like this https://example/wp-content/uploads/documents/example/MP-...
0
votes
0answers
11 views

unable to upload images on wordpress showing “ specified file failed upload test” help?

I have tried many times by changing permissions but it still showing " specified file failed upload test"
0
votes
0answers
28 views

500 Internal server error wp_handle_upload_prefilter

I get a 500 error after I've added the wp_handle_upload_prefilter to my plugin class. How I can fix this? require_once 'vendor/autoload.php'; class MyClass { public function __construct() { ...
0
votes
0answers
73 views

wp_handle_upload - specified file failed upload test

I'm using the wp_handle_upload() function to create a plugin that will give to the users the ability to upload files from front-end using ajax. I've solved an issue relative to an error in the syntax, ...
0
votes
0answers
16 views

Add upload progress bar for ajax upload form

Is there any way to add a progress bar to an ajax upload form in wordpress? I've searched here for a similar question, but I was not able to found nothing.
0
votes
0answers
13 views

Media library and Media Picker exclude specific upload subfolder media

I use some plugin to upload images into specific uploads subfolder. I want to exclude this subfolder media to being displayed in Media Library and Media Picker. For Media Picker I tried this filter, ...
0
votes
1answer
41 views

How to know what page is calling admin-ajax.php?

The original goal is this: all users can add and remove images from the page on front end, but, they can only see their own images. When in the admin part of the website, administrators should see ...
1
vote
1answer
41 views

Frontend Post - Allow Only Image File Upload

How I can allow user to upload only IMAGE file ? function.php // Insert Attachment function insert_attachment($file_handler, $post_id, $setthumb='false') { if ($_FILES[$file_handler]['error'] !==...
0
votes
0answers
46 views

How to upload Web-record Base64 Wave Audio file in WordPress Post (front-end form)

I created a WordPress post form that works well And I want to add a field: Browser recording audio file Based on base64 - (blob file) And upload when posting. My javascript code is : https://...
0
votes
1answer
19 views

How to display the maximum upload size in a WordPress single site?

I'm working on a WordPress single site, where in front end, below a custom made form, where I have a file upload feature, I need to display the maximum upload size. In my local Laragon WAMP setup, ...
0
votes
0answers
19 views

the temporary save folder is wrong

when i try to upload image or add plugin to my wordpress website i get this errer the temporary save folder is wrong i try to fix this by creating temp folder in wp-content and fixing wp-config....

1
2 3 4 5
36