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
1 vote
1 answer
15 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
11 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
18 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
26 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
19 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
31 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
27 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
18 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
39 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
  • 41
0 votes
0 answers
27 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,048
2 votes
0 answers
55 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
  • 21
0 votes
0 answers
20 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
31 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
  • 41
0 votes
1 answer
36 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
24 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
26 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
16 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. ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
8 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
41 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 ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
20 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
51 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
52 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
21 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
21 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
0 votes
1 answer
34 views

Wordpress Media Uploader not displaying image that has just been uploaded

I am trying to implement a custom WP Media uploader within a plugin. I want multiple images to be uploaded also. I have the following javascript to open the media uploader. The modal opens fine and ...
JadeTech's user avatar
1 vote
0 answers
43 views

Problem with "is_user_logged_in()" and woocommerce (Code for custom media upload for each author.)

I'm sorry for my english... I am using the following code to create separate media directories for each author.. ( Thanks to https://wordpress.stackexchange.com/a/400352/220907 ) function ...
Andrei Ka's user avatar
0 votes
1 answer
106 views

How allow only the uploading user access to media

I have an application that requires that only the user + admin can access files uploaded by that user? EG a user uploads an image to media. Only that user should have access to it Thanks for any tips ...
Cloudworks's user avatar
0 votes
1 answer
22 views

Media manager asks for file title when upload

When I upload a new file I have this error message : Content, title, and excerpt are empty. I found the error messahe in wordpress_data/wp-content/languages/en_GB.po line 6809 (but it's a post related ...
Sami's user avatar
  • 174
0 votes
1 answer
56 views

Restricting Image Upload Sizes using 'wp_handle_upload_prefilter' - Stuck media progress bar when Featured Image?

I have grabbed this function and adjusted it to my needs. add_filter( 'wp_handle_upload_prefilter', 'check_image_dimensions_during_upload' ); function check_image_dimensions_during_upload( $file ){ ...
dekkyd's user avatar
  • 5
0 votes
0 answers
30 views

how to upload pdf or word file to media library with code

I'm adding a new feature to the cart page, that needs to upload files (word or pdf) to the media library. I am using this code ob_start(); ?> <form method="post" enctype="...
tiago calado's user avatar
0 votes
2 answers
24 views

I can't increase the max upload file size for wordpress on local install?

I am running a local dev installation of Wordpress. I try to upload a 32MB video but I can't increase the upload file size past 8M. My php.ini is set to 200M upload_max_filesize = 200M I have ...
user6329530's user avatar
0 votes
2 answers
28 views

WordPress is getting 404 with non-English filenames

I have an old WordPress site. The site is now running on WP 6.2.2 with the TwentyFifteen theme. PHP version is 8.1.20 with no major Alert in WP Health page. If you open the file on a new tab, it's ...
Mayeenul Islam's user avatar
0 votes
1 answer
30 views

All uploaded files using wp_mail() renamed to tmp_name

I am attempting to retain the original file name of my uploaded file using wp_handle_upload() and wp_mail(). Currently, all files are retaining their original file extension, but renaming themselves &...
user2841359's user avatar
0 votes
0 answers
22 views

Allow user to download 1 file per month

I am currently using Memberpress for subscriptions to my site. I would like to offer to my members, behind a login, a set of files to choose from but allow only 1 download per month. So I would ...
jyoseph's user avatar
  • 197
2 votes
1 answer
37 views

wp.media multiple selection limit

When I use wp.media dialog , is there a way to limit how many files can be selected when multiple option is used? wp.media({ library:{ type: "audio" }, ...
Toniq's user avatar
  • 437
0 votes
1 answer
47 views

How to solve too many files in uploads folder(s)?

my wordpress has this setting for upload - .../uploads/{year}/{month} However I noticed that some folders (like .../uploads/2023/06) have 30+ thousands files. So I want to relocate them to new ...
wpproguser's user avatar
0 votes
0 answers
185 views

How to disable the PDF preview in the file block by default

when I insert a PDF file with the file block on the page it always opens to me with the preview of the file with the pdf viewer, so I have to put the check to disable it. Is there a way to have that ...
LesCa's user avatar
  • 21
0 votes
1 answer
69 views

How can I find a big uploaded zip file in the Media library?

I need to upload big files 500 MG and more to my wordpress site so that these can be used as downloadable products on woocommerce plugin. I managed to connect my site to Fillzilla found the folder ...
ronin074's user avatar
  • 101
0 votes
1 answer
24 views

I want to allow certain file types on dokan upload files

Before we get started, I have tried alloweding "UPLOAD_UNFILTERED_FILES" thing on config.php and i have tried allow different mime type plugins, none of them worked I want to allow .rbxlx, ....
ItsBenny_'s user avatar
0 votes
0 answers
13 views

possible to use media library with independent set of files in plugin?

I'm looking to have a page located in the Wordpress admin backend powered by a custom plugin have access to upload and manage previously uploaded images, essentially using the media library. But I am ...
Talk Nerdy To Me's user avatar
0 votes
0 answers
287 views

"Unexpected response from server" error when trying to upload any .mp4 file over 100MB

This WordPress site is being hosted by BlueHost (with cPanel). It is running on WP version: 6.2.2, and PHP Version ea-php74. According the the WP's media 'add new' page, the Maximum upload file size ...
SunnyOz's user avatar
  • 165
0 votes
1 answer
24 views

Add URL in image upload error message

I'm wanting to add a URL link into the image upload error message, but it's only printing the string, not adding the hyperlink. I'm using the code below function my_max_image_size( $file ) { $...
SolaceBeforeDawn's user avatar
0 votes
0 answers
43 views

get_post_meta returns on side but it doesn't return on bottom of admin page

I have added a custom image upload option in custom CPT page and here is the screenshot - The image is showing well in side bar of admin page after updating a post, screenshot- But when I add that ...
Md maniruzzaman Moon's user avatar
0 votes
2 answers
692 views

Update media item using wordpress rest api in python

I am trying to update an image using the Wordpress rest api in Python. I get the status code 200 but the image does not update. I have not found any solution online other than replacing http with ...
Shary's user avatar
  • 3
0 votes
0 answers
15 views

Automatically integrate feature image to wordpress article via API

I have created a scenario with the automation Platform Make to automate my Wordpress article redaction. I start from entering inputs in a Tally form, then Make send it to OpenAI API to redact the ...
JS1's user avatar
  • 101
0 votes
0 answers
16 views

How to restrict product access to personal user uploads in WordPress

By default, WordPress allows authors to see all products on all products on your site. If you invite a large number of guest writers, this can be problematic. How to restrict access to all WordPress ...
Milad Akbarzadeh's user avatar
3 votes
1 answer
77 views

How can I add custom sizes for PDF thumbnails generation?

I define custom image sizes in my theme like this : add_action( 'after_setup_theme', 'mwm_custom_image_sizes' ); function mwm_custom_image_sizes() { add_theme_support( 'post-thumbnails' ); ...
mike23's user avatar
  • 5,951
0 votes
1 answer
254 views

Uploading media to wordpress API with C# HttpClient

I was trying to save some media but I can't get it to work. I don't know if its the authorization is the wrong format, or if its the content is just put in wrong. If someone knows how to please help ...
UltimateSeeSharp's user avatar
0 votes
0 answers
243 views

Convert Image to Webp on upload without plugin

I try way to convert image on upload automatically. I try a lot of plugins but all of that work over .htaccess and make duplicate image in upload folder example. imagename.png.webp I want convert ...
kuribo's user avatar
  • 1

1
2 3 4 5
41