A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
3 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
16 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
16 views

Renaming an image before it is created.filename when pasting 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
9 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
9 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
8 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-...
-1
votes
0answers
21 views

How may I change default directory for files upload in Ultimate Members Documents?

I used this code to change default directory in which ultimate member document uploaded files, but after the last update it doesn't work anymore and files are always uploaded in a dir /um_docs/...
0
votes
0answers
8 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
16 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
11 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
3 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
34 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
31 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
23 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
13 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....
0
votes
0answers
15 views

Set external URL as attachment source

I'm interested if it's possible to use the WP media library with external images as sources. Basically, I need the ability to add the images to the post (via meta field that stores the connected ...
1
vote
0answers
31 views

Need help with Google drive API [closed]

I am currently working on a WordPress website which has almost the same functionality as YouTube(log in, upload videos, create channels etc..). My requirement is, When a new user is logged in and ...
1
vote
0answers
19 views

Media Library does not show the uploaded image

I am using a custom form to upload image and trying to move the file in the Media Library. The wp_insert_attachment() is working fine because I get the attachment id; however I don't see the image ...
2
votes
0answers
25 views

How to re-arrange media uploaded using : media_handle_upload() as per year / month

I have been facing this issue that all the new media files are getting uploaded to single folder which was auto-generated during initial site development. Now since all new images are getting uploaded ...
3
votes
1answer
47 views

how to upload mp3 from url to wp media

hello please am trying to modify this plugin to support mp3 upload from url <?php /* */ add_filter("media_upload_tabs",array(&$this,"build_tab")); add_action("...
1
vote
1answer
52 views

Is there a simpler version of WP Media?

I'm developing a plugin where users need to be able to upload an image (a payment receipt) to a custom user field. At the time, I'm using a code I found here Extra User Profile Field Upload File / ...
1
vote
1answer
55 views

How to disable the suffix “-scaled” which is being added at the end of each uploaded image?

I don't know why, but now, Wordpress is adding a suffix "-scaled" at the end of each newly uploaded image. And, instead of keeping the original image link, it changes it to the "-scaled" version: I ...
1
vote
1answer
122 views

async_upload.php 500 Error when Uploading larger files with slow internet connection and latency

my page runs on a local corporate network on a Windows 2016 server running IIS 10. PHP 7.1 WordPress 5.3 The page is used as a video platform. Videos up to 2GB can be uploaded. From our locations on ...
0
votes
0answers
17 views

Import images from old WordPress site into new site

I have exported both tables from old wordpress site of which gallery images i want to import into new wordpress site. After export, i follow following steps: --> In the wp_posts.sql file I did the ...
0
votes
1answer
22 views

How to upload a file and have it available on the post for download?

I am quite new on Wordpress. I would like to have a custom field on my post creation on which I select a file. I would like to upload this file on server and have a link for download on the post that ...
0
votes
0answers
13 views

How to setup a CDN with hidden wp-content/uploads

Directory Browsing is disabled / folders are hidden. So the CDN I want to setup can't access the files. Is there any workaround here? Or is it safe to make the wp-content/uploads public accessible?
0
votes
1answer
30 views

WP media upload issues

I've come across a lot of people facing this issue that was eventually solved by file permission. I'm getting this error: The uploaded file could not be moved to wp-content/uploads/sites/4/2019/...
0
votes
0answers
10 views

upload permissions for imported users

I re-created a WP site and imported users from the old site to the new; they all have their own profile with pics, etc. However, the only way people can upload media is if I change the permissions of ...
0
votes
0answers
15 views

How to remove “sites/1” from upload path in multisite?

I need to remove "sites/1" from the upload path for my multisite. I don't mind that all the sites end up sharing the same folder (I control all the sites). I also don't mind if I need to make some ...
0
votes
1answer
22 views

Images not displaying on site or media library

I ran into a problem with my site which is basically a portfolio site. I show my works as galleries in different pages. When I first uploaded my media, everything was fine and the site looked good. ...
0
votes
1answer
23 views

Problems with defining UPLOADS constant

I have a custom Wordpress file-structure like web-root: content (folder) uploads (folder) plugins (folder) themes (folder) ... and so on wordpress (folder) wp-admin (folder) wp-includes (folder) ....
0
votes
1answer
34 views

Wordpress uploads autocreate folder every month

In start of every month WP creating folder with month number, like /uploads/2019/11, and it's creating with ROOT, so I dont have permission to write it. If I delete it, and then it's creating when I ...
0
votes
0answers
19 views

WordPress Media After Migration

My problem is that I migrate a Joomla website to a WordPress website and I want my media files to be located to on a server other than my WordPress server. For example: server A is WordPress and ...
0
votes
0answers
27 views

Cannot display wordpress thumbnail

I wrote a simple Wordpress Plugin that upload all images inside a folder located on another server. The uploading process is working well, but for some reason when I go inside Library I have a blank ...
0
votes
0answers
14 views

Maximum file Upload

I want to ask the about this upload_max_filesize = 2M in PHP. Does it mean that the allowable file upload is 2M? then how could we or how can we upload videos more than 2M?. Thanks new to PHP.
0
votes
0answers
15 views

Multi-site: how to create directory on server to link files?

I'm wondering how I can create a directory on my server to serve files to one of my multi-site pages. With a standard wp installation, I could create a folder in my main directory /files for example. ...
0
votes
1answer
40 views

get_template_directory_uri() generates wrong path

I've uploaded a wordpress site but it's missing javascript and css. The links on the head still have the local path (src='https://localhost...') and not the new ones. So I guess it has to do with ...
0
votes
1answer
29 views

get array of files in uploads dir

We created a frontend user profile, where the user can upload files to a special directory in wp-content/uploads/ The upload is done with a plugin called ultimate member (there it will create a ...
0
votes
0answers
24 views

Hide WP Media Uploader Window

It might need some code written into functions.php if you have any idea about it. General task is to hide this modal WP uploader window And Use Simple Browser uploader instead of WP uploader Thank ...
0
votes
0answers
13 views

How to prevent filling out the “title” field when uploading files?

How to prevent WordPress from automatically filling out the "title" field when uploading files. Not when pasting an image into content, namely when the image is uploaded to WordPress itself.
0
votes
1answer
31 views

Upload User Avatar from android to Wordpress using Rest API

I am developing an android app that give users ability to browse , register, login, post and comment to my wordpress blog using Rest Api . I am trying now to add a way for users to update their ...
1
vote
1answer
11 views

Is It Possible to Upload Certain Attachment Files To A Remote Server

My Situation I'm developing a book-store WordPress website where you can purchase and download books in PDF format. I don't want to use the local space for file storage (the host provider offers ...
0
votes
0answers
31 views

Hide all files from specific subfolder in Media Library

I use a subfolder /pdf/ in the Uploads directory, in which specific PDFs are added via another plugin: Example: /wp-content/uploads/pdf/filename.pdf Is there any simple way to hide all these files ...
0
votes
1answer
166 views

Manipulate the files uploaded via Gravity Forms before they are stored

I would like to make changes to files (for e.g. compress them into a zip) uploaded via Gravity Forms File upload field before they are uploaded to the webserver. Do you know of any hook or ...
1
vote
0answers
31 views

Error uploading image in WordPress

Hello i am trying to upload an image from a form in WordPress but i keep getting: Error loading File! without any clue as to what am doing wrong: require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load....
0
votes
0answers
26 views

How do I set a maximum upload size for a specific user role (Editor)

In Wordpress I want to be able to restrict each Editor to be able to upload 500 mb of different files in total. Is that possible? Thanks Kasper
1
vote
0answers
28 views

Force minimum image size and aspect ratio when uploading images

I'm developing a website where all a crowd of people will be uploading posts. To ensure the featured image on the post meets the requirements of other services the website will work with, I need to ...
0
votes
1answer
42 views

Big file upload give HTTP error

Just, when I go to Add New (/wp-admin/media-new.php) in Media menu, when I choose a big file, about 30 mb, upload progress bar stuck on 100% and give me an error in console: load-scripts.php?c=0&...
0
votes
0answers
19 views

Why does Wordpress convert my jpg's to png?

Anytime I upload an image to the media library it shows up as a png. And when I want to use it in a post Wordpress tells me I can't use a png. How does this happen? The site is in development and ...