Skip to main content

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
1 answer
24 views

Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media

I want to get Specific Extension Files from Media of Current Post Uploads—for Instance, .jpg or .png or .pdf, or MP4. (Get Only 1 Extension All Files From Current Post Uploads) Specific Extension ...
Islamic Quran Center's user avatar
0 votes
1 answer
23 views

Cannot add image (png, jpeg, etc.) but can add pdf, 403 forbidden when posting

I just encountered a bug when I am trying to post with images. When I am adding media using "Add Media" button, the image will not add and will have this error: POST https://philsa.gov.ph/...
Nikko's user avatar
  • 101
0 votes
0 answers
11 views

Simplifying 'Add Media' Modal in front-end Content Editor

I am using a front-end submission form for users to contribute posts to my platform. Users can upload text and images via the content area. However, I would like to simplify the interface by limiting ...
RobH's user avatar
  • 7
0 votes
0 answers
24 views

How to Upload a media item with alt text and description

I'm trying to upload a media file to the media library with the altText and caption for it using the media endpoint: https://developer.wordpress.org/rest-api/reference/media/#create-a-media-item ...
Vikram Aruchamy's user avatar
0 votes
0 answers
20 views

Wordpress Playground and uploading permission issue

I've been testing the Wordpress Playground with my plugin. My plugin offers a way to upload a file to wp-content/uploads/ and it seems to work in the playground. $file_name = $file['name']; $temp_file ...
bestprogrammerintheworld's user avatar
0 votes
0 answers
6 views

Trying WP editor to load full size image (not '300x300')

The site used to have a plugin that created a lot of image sizes from uploads (150, 300, 800 px etc). I removed these images from the uploads folder bc they were not used by the theme. Now, the WP ...
Ludo's user avatar
  • 61
1 vote
0 answers
30 views

Removing custom physical folders with rmdir

Need help with WordPress to remove custom physical folders. I am developing a WordPress plugin to use custom physical folders in the Media Library. The functionalty of the 1st version is quite basic: ...
user6786748's user avatar
0 votes
1 answer
17 views

Get all WordPress-created sub folders in uploads directory

I'm writing a maintenance script for my own sites and one part is to clear out all .webp files, since my host now handles WebP conversion on the fly. I could easily traverse through all the sub-...
Gavin's user avatar
  • 404
2 votes
0 answers
17 views

I can't see all images in my media library - How Can I reset the index of that library?

When I load my media library (either through the media tab on the left or editing posts/pages and adding images in that interface) it shows that I have 1206 images in my site. However when I click ...
pressword's user avatar
  • 360
1 vote
2 answers
84 views

Front end form with images and media_handle_upload logic?

I'm building a front-end form with image submissions. The form creates then a new post: ...process post... $application_id = wp_insert_post($application); I then use media_handle_upload to upload ...
Runnick's user avatar
  • 1,009
0 votes
2 answers
146 views

Cannot Upload Video (MP4) File

It's a 28.8 M .mp4 file that has uploaded to another WP installation and is live. I'm trying to use the same file on a development server - a fresh install of WP with a media upload limit of 512M. ...
happycoffeebean's user avatar
0 votes
0 answers
66 views

"Media Library" shows as empty, despite images being present

I am trying to clone a WordPress site, but the files in wp-content/uploads aren't shown in the the Media Library: OK: I have created a new subdomain for a new installation of WordPress, and I have ...
Torben Gundtofte-Bruun's user avatar
2 votes
1 answer
69 views

WordPress Permissions Issue for Media Library / uploading

I've got some issues with file permissions which I'm trying to resolve... I have two sites and they both have the same permissions as far as I can tell but for some reason one site can upload files / ...
Ryflex's user avatar
  • 73
0 votes
0 answers
13 views

Upload media file failed. Uploadtest failed

When i want to upload a media file in wordpress (dashbord media) i get the message: Uploading “” failed. The file failed the upload test. php version: 8.0.30 Is there a string/variable that must be ...
Albert Lepoudre's user avatar
0 votes
1 answer
66 views

Can not access .txt file which I uploaded through media

I can not access my uploaded .txt in Wordpress, it gives a 403 access denied error. I can access .png files however, why not .txt files? I uploaded my file here: And got the URL here (I click copy, ...
NoKey's user avatar
  • 101
0 votes
0 answers
17 views

Do uploaded files to /tmp/ get deleted in WordPress automatically?

I create a custom plugin with a upload file input in the admin area, my concern is, what happens to the file after upload? My concern is that the file that is going to be uploaded has sensitive ...
drshelloworld's user avatar
1 vote
1 answer
63 views

Moving uploads directory above wordpress directory. UPLOADS location in parent directory

I will ask for help as I'm going nuts trying to figure out what is going on here. I've read many other questions but there is never a final answer. I want to organize my WP installation in a different ...
Gerard Reches's user avatar
0 votes
0 answers
19 views

upload featured image using custom post type

I keep getting this error on specific posts that is created using custom post type. the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is ...
winona's user avatar
  • 131
0 votes
0 answers
25 views

I have uploaded thousands of files in the uploads folder via FTP and I want to register them into the database without any plugin

I have uploaded thousands of files in the uploads folder via FTP and I want to register them into the database without any plugin because plugin takes so much time. Is there any way to register them ...
Sheikh's user avatar
  • 1
1 vote
0 answers
17 views

How to revert the media structure from /uploads/year/month to the /uploads directory in wordpress?

I tried to use wp-cli using regex like this: wp search-replace 'uploads/[0-9]+/[0-9]+/' 'uploads/' --all-tables --regex but in this case there is a problem with possibly repeated file names and ...
Macsurf's user avatar
  • 11
1 vote
1 answer
256 views

Convert base64 string to WordPress attachment uploads multiple images instead of a single one

I'm trying to convert a base64 string to an image file and upload it into WordPress media library. It seems like the code is working, but, for some reason, every time I call this function it uploads ...
benjah's user avatar
  • 111
0 votes
1 answer
64 views

stop resize button for wordpress media

The images in my WooCommerce product gallery do not need to be resized I only need the original image to display. Is there a way to add a toggle button to wordpress media to tell it to generate other ...
Monoor's user avatar
  • 13
0 votes
0 answers
42 views

Enabling custom file and mime types in multisite

I want my multisite network to be able to upload and distribute files that are not allowed by default. In multisite network settings there is a field for adding additional file formats. However this ...
tanGIS's user avatar
  • 101
0 votes
1 answer
49 views

Different upload file size limits based on file type

I would like to put a different limitation on uploading content in the media library ( depending on file size and file type) For example : Upload mp4 (allow maximum upload file size 64mo) Upload pdf (...
Samuel's user avatar
  • 344
0 votes
0 answers
49 views

How to change media folder from created time of the post to publish date?

Now, all the structure of the media folder is under /wp-content/uploads/ and years-months combination from the created date of the post. Is it possible that his path will automatically change to /wp-...
Victor Ramos's user avatar
1 vote
1 answer
22 views

wp-content/uploads/year/month returns 404

I have a litespeed hosting I have disabled all plugins and all wordpress related htaccess rewrites. If I go to https://digitalzoomstudio.net/wp-content/uploads/2023/ - then I can see the directory ...
digitalzoomstudio's user avatar
0 votes
0 answers
24 views

images inside uploads folder will return 404

My images will not load . accessing anything inside the uploads folder returns 404 https://digitalzoomstudio.net/wp-content/uploads/2022/11/image-1-1024x617.png I am 99% sure I am not crazy and that ...
user237193's user avatar
0 votes
1 answer
22 views

WordPress Media File - Hard Code

On our website, we have a downloadable PDF guide. I know I need to upload a PDF to the media library and copy the media file URL, but under what section would I find the hard-coded area to make the ...
Simone's user avatar
  • 1
0 votes
0 answers
11 views

Wordpress portfolio posts: media not displaying if several images

A friend in need asked me to fix his wordpress website; I am new to it. The website is quite old. He used portfolio posts; it displays just fine when there is only one image selected, but there is a ...
ClickityCluck's user avatar
0 votes
1 answer
214 views

Is there a way to bulk upload HTML files into WordPress as posts or pages?

I realize this is a longshot... I have a site running on a proprietary platform ("SiteSell", aka "SBI"). I have over 200 html files from that system on my local computer. Is there ...
Bob's user avatar
  • 1
0 votes
0 answers
23 views

add_action to only be called if uploading media from the front end

I have written a shortcode which allows some users to upload to the media folder. This is done using the wp_enqueue_media scripts. I would like to add an action which fires when a user uploads this ...
StripyTiger's user avatar
0 votes
0 answers
36 views

Images stored from external API not loading

The following is my code I am using to store image that I am getting from an external API using my own plugin. The images, or any media in general, are not loading on the frontend or the Media tab on ...
I. Antonov's user avatar
0 votes
0 answers
28 views

Can't save Image from external API into Database

I am trying to create a plugin that gets data from an external API and stores the data into the database. The data I am receiving, contains Texts and Images. I have to save them separately as in the ...
I. Antonov's user avatar
0 votes
1 answer
20 views

css and images in uploaddir, different response in different browsers

I have some pages to demonstrate how to include and use some code. Therefore I load js, css and images with sftp to a directory in /wp-content/uploads/ and describe how to use it. Now I would like to ...
pehu's user avatar
  • 11
0 votes
1 answer
53 views

Does Wordpress Super User or Administrators can create and edit post and media on behalf of a user

For my project I need to administrate user post and media without access to it personal account. So I must be able to create and edit a post (by is user name) before or after it has been created on ...
imagIne's user avatar
  • 83
0 votes
0 answers
33 views

remove links in pop-up media gallery

Is it possible to remove certain links in the pop-up media upload screen? Is there a filter for the output of those links? We need to remove the links crossed out in this screenshot: We can hide them ...
shanebp's user avatar
  • 5,063
3 votes
1 answer
354 views

How do I display a PDF thumbnail as a link to the PDF without uploading the image

When I found a couple of years ago that WordPress will create thumbnails of uploaded PDFs, I was so happy, thinking I wouldn't have to make and upload separate PDF cover images to have a thumbnail ...
bkepl's user avatar
  • 131
0 votes
0 answers
55 views

Permission to edit media files (photo captions, alt tags)

What permission is required for a user to be able to edit all media files in Wordpress? I'm trying to edit the captions and alt tags of some media files in Wordpress. I can see the media file in the &...
Michael Altfield's user avatar
0 votes
0 answers
51 views

How to modify the uploads directory for wp.media.frame assigning an subfolder name

To be better organized I must be able to manage the media independently of the user. So in addition to restrict user to see only these files(images, docs, videos), I need to insert media for each ...
imagIne's user avatar
  • 83
0 votes
1 answer
123 views

Xhr.send : PDF upload failed with status 400 and response 0

Hope you are doing good. I need your help if you may, please. I have a js code that actually generate a pdf client side and should supposely upload it on the wordpress server. It's not the first time ...
Louis-Emmanuel Metan's user avatar
0 votes
0 answers
43 views

How to upload files on s3 Bucket in Background Task uisng PHP WordPress?

I have a website where users upload their videos. Videos length is more than 600 MB so I want to run videos upload in background and update in database. Users will also be notified via email. So cron ...
Xabby's user avatar
  • 101
0 votes
0 answers
27 views

Multimedia upload error in my wordpress job board plugin

I have the below code in my plugin. Admin is meant to be able to insert funding_amount, funding_deadline, and funding_multimedia_field from the dashboard if the resource category chosen is funding. ...
ADEMESO DAMILARE's user avatar
0 votes
0 answers
43 views

Custom uploader - Upload files and save link into database

I'm working on a file manager plugin. I need to store the saved files in custom folders and save the link into database to be able to get all the files and folders structure inside my vue front-end. ...
OHICT's user avatar
  • 133
0 votes
0 answers
14 views

How to upload multiple images to use as gallery in Kirki Framework

I am using Kirki Option framework which works like charm in most cases, I recently shifted from Redux framework. I have a section in my website for the gallery, I want to upload multiple images using ...
Milan Bastola's user avatar
0 votes
1 answer
404 views

Get a list of folders inside uploads directory

I know I can create a folder in uploads directory using wp_mkdir_p() function of WordPress. I'm working on a file manager that will use the rest api to get a list of files since it's vue based for the ...
OHICT's user avatar
  • 133
0 votes
0 answers
21 views

Theme Forest How do I add data content

Total WordPress Novice here. I am using a Theme forest template and wish to add content but keep getting a critical admin error. Do I Reinstall, delete,activate or start over with the template. Any ...
user2862611's user avatar
0 votes
0 answers
122 views

Adding multiple MIME types of the same extension to WordPress?

I am trying to enable DWG MIME types for WordPress file upload, and tried applying this filter. However, because it's the same array, it won't work and will only apply the final one below. Wondering ...
cchow's user avatar
  • 1
1 vote
1 answer
84 views

How can I get all attachments by a user on a WP multisite network?

I'm creating a front-end based project where users can make posts and add images to them. It's a network of sites that users have access to. For a better user experience, I want users to be able to ...
ToongeePrime's user avatar
0 votes
1 answer
41 views

How can we upload custom page files?

By making our own .html, .css and .js pages, how can we upload them in WordPress directory correctly? And then, how can we insert, for example, our Elementor's header (which is being used in all ...
Maria's user avatar
  • 3
0 votes
0 answers
37 views

Problem uploading photos when I show page as subdomain

I created a subdomain and created an index.php file in it. Then I gave the identity of the Dokan dashboard page to the index.php I created. So I made the dashboard page as subdomain and everything ...
ByWorld's user avatar
  • 11

1
2 3 4 5
41