Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-1
votes
1answer
15 views

How to make a WordPress website where users can login and upload or download files

I want to make a WordPress website where users can create account and login then when they are logged in they can upload files for other users to download. I want to do it in a way that only members ...
0
votes
0answers
5 views

Customize media uploader by user role

I am having a media uploader like below. I want to remove the sidebar on the left so that only portion below the visible. It can be done with css but i hoping that that there is some better way to ...
0
votes
0answers
23 views

WP multisite to use one media library for all sub-site

I am working on a Multisite project. Overview: We are creating the content/posts on main site using Visual Composer page builder plugin and then cloning that post across all sub site using a cloner ...
0
votes
1answer
12 views

Cannot upload png photo files into media library. I get a 'Could not insert post into the database'

I uploaded 7 files this morning but this afternoon all I get is the 'Could not insert post into the database' message. I am a novice at best to WordPress and I have no clue what to do.
0
votes
1answer
9 views

Images not found after migrating Wordpress website

I recently migrated my website to a new hosting platform and since uploading the files and changing the database details, some images aren't being found. I've checked the FTP and the files are in the ...
0
votes
0answers
11 views

Save File from Url to Wordpres

I am writing a custom Plugin for a client, where I want to access a [FILE] (type can be anything from Images to Videos) from a Url on a Server and I want to save that [File] to the Media Database or ...
-1
votes
0answers
9 views

Create a download page for a new file uploaded by users from upload form

I want to create a download page for a new file uploaded by users from an upload form. I have already made an upload form, however I don't know how to create a download page for a new file uploaded by ...
0
votes
1answer
8 views

Media uploads error

I am very new to this and just created my site yesterday. Suddenly I can’t upload any photos and an error is being displayed ‘An error occurred in the upload. Please try again later’. I saw a ...
0
votes
0answers
12 views

Add Media Dialog In WordPress Post Screen Too Confusing For My Users

How can I edit the contents of the Add Media box (shown above) in the WordPress post screen? All these options are unnecessary for my users, and I need to edit the short-codes as well, but it needs ...
0
votes
0answers
62 views

How to bulk action with uploading images?

I have bulk action to transfer product to woocommerce. I need to create a variation product then attach an image for every variations and product gallery. The image is coming from external url so I ...
0
votes
0answers
11 views

Switch which IPTC field WordPress defaults to for the image title on upload

While looking at the core code documentation, I see wp_read_image_metadata() ( https://codex.wordpress.org/Function_Reference/wp_read_image_metadata ) decides how to populate image "titles" via this ...
-1
votes
1answer
20 views

Couldn't upload images to wp-content/upload? [closed]

I am having issues with my WordPress site . Images can not be uploaded to wp-content/upload. I have no access to web cpanel or ftp because the freelancer is not responding. Is there any way to fix ...
0
votes
1answer
13 views

How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?

This alert shows when you click Delete Permanently on a media (attachment) item. My Goal: I want to change the text of the alert if the current user has a certain custom meta value. Also, changing ...
0
votes
1answer
15 views

How to move UPLOADS folder in sub-domain which hosted in another server

I want to move the uploads folder to a sub-domain. it hosted on another server. there are a lot of guides which is mentioned move the folder to a subdomain which hosted on the same as the main site is....
1
vote
0answers
27 views

Custom Post Type Video - Online/Offline

I have created a custom post type which will store posts that contain videos, i have made use of the ACF wysiwyg field to display the video content and i have a further true/false field which will ...
0
votes
1answer
69 views

WP fails to upload files to media library, /wp-admin/async-upload.php 403 forbidden

I've Googled this question in a large amount of sites, but I've not found any good solution. The problems seems a common one, on the web. These are the details... If I try to upload a file directly ...
0
votes
1answer
30 views

Some Images Disappeared from Media Library?

I am missing some of my images in my Media Library on my site. When I go and look in the Media Library it shows where the images used to be with a blank thumbnail and if I try to view those images it ...
1
vote
0answers
11 views

Why is the temporary upload always 4.1K

My plugin always creates uploads of 4.1KB but these movies should be actually much larger. First I'm registering them as a shutdown function register_shutdown_function(array($this, '...
0
votes
0answers
19 views

Not able to upload Plugins/ Theme from Admin backend

I am facing strange problem that site admin is not able to upload and activate any plugin from the back-end. There is no option available to upload the plugin as well as theme. I have checked all the ...
0
votes
0answers
15 views

Do audio files impact the loading time of the website?

I have to upload 10 audio files (sermons) on the WordPress website for my client, and these files are of around 70mbs explicitly. I need to know whether those audio files affect the loading time of ...
0
votes
1answer
25 views

Can you limit the size of media files being uploaded not using php.ini?

Im facing a problem, we've got several clients who really don't care about what size images they upload but then come to use later in time to ask why the site is slow. So as a solution I would want ...
1
vote
1answer
104 views

Convert all images to PNG on file upload

On my site I have a front end form for users to upload multiple images, using the following code --- if (!empty($_FILES['vidPix']['tmp_name'][0])) { $i = 1; $...
1
vote
1answer
18 views

Email Attachment from Form Submit

I am currently encountering a very strange problem. With the help of two existing wordpress functions (wp_handle_upload and wp_mail) and a form that uses some custom ajax functionality to process my ...
0
votes
0answers
12 views

WordPress Media Uploader set library

I am trying to reuse WordPress Media Uploader and I need to change library. I have looked into the console and this option seems to be under: uploader.options.library.type however setting this does ...
1
vote
0answers
26 views

Can't upload image using media_sideload_image

Have just concern about the media_sideload_image function, its does support https links image? and the wp_upload_dir() support https too? I've tried using media_sideload_image to upload image with ...
0
votes
1answer
65 views

Uploading dwg files to wordpress

I'm trying to upload files with dwg extension to media but when I do that I get an error telling me that uploading files with this extension is not allowed. I tried to upload them via ftp but I cannot ...
0
votes
0answers
25 views

How to add custom file upload field in ultimate users plugin in profile forms

In my website i am using ultimate members plugin.In this plugin there is no field that i can add video file.So i want to add video field in profile form in this plugin. here is sample page now i want ...
1
vote
3answers
28 views

HTTP Error when uploading files above 7mb unless using GD Image Editor

I noticed recently that when uploading files larger than 7mb to a Wordpress site that I developed, I get an HTTP Error. I've checked some of my PHP variables, and have verified that memory_limit is ...
0
votes
0answers
10 views

Allow users to post their videos to my wordpress website?

I want to allow users to post their suggested videos on my website through url and file upload options. i went through the user submitted forms plugin but in that there is only option for image upload ...
1
vote
1answer
23 views

Extra “uploads” added in path

Although this is related to Advanced Custom Fields, this function uses all native WP features, so I think this is appropriate to ask here. Where is the extra "/uploads/" in path is coming from here? ...
0
votes
0answers
15 views

Wordpress image uploading syntax error

I am facing issue with Wordpress image uploading the error: syntaxerror: unexpected token b in json at position 0 I have checked with the permissions which is fine. Also, phpmyadmin the upload path ...
0
votes
1answer
34 views

how to change the max size of media upload? video audio wp 4.9.6

I'm using wordpress 4.9.6, and the max file size upload is now 8Mb. I used to upload 50+Mb video and audio, but it has changed. how can I change that to 100Mb?
0
votes
0answers
61 views

How to upload multiple images using WP rest API to media?

I'm using JWT Authentication for WP REST API plugin and WP REST API Controller plugin Take this rest api for example, it's an api for this post, and here's the media I understand everything about ...
1
vote
0answers
60 views

When sale price is 0.00 show only regular price

I run my woocomerce product updates via excel sheet uploads with over 10,000 products. However, with the sale price/promo price column, I have prices of 0.00, 0 and some blank. I want a situation ...
0
votes
0answers
24 views

Issue with upload.php with media

I'm having trouble uploading any images, files etc... on to the CMS. When visiting the Media Library the loading spinner will just constantly load without anything being loaded up. When I do it just ...
0
votes
1answer
70 views

wp_update_attachment_metadata breaks after 10 files

Currently we are rebuilding an old WordPress site. We need to import a lot of images from there. So I copied all directories to the new site, so the paths would be the same. Now we want to add them ...
-1
votes
1answer
28 views

No wp-admin, wp-config, or .htaccess folder/file

This all started when I was not able to upload a picture to my site. All media under Media do not have their picture or preview; the pictures would simply be blank. Clicking on View while in list mode ...
0
votes
0answers
50 views

Frontend Media Upload throws TypeError mediaelementplayer

I am trying to add a media upload button on frontend. Here is my code that enqueues media and my script file function pc_scripts() { wp_enqueue_media(); wp_enqueue_script( 'pc_custom', ...
0
votes
0answers
31 views

When upload to media it says an error occurred but the file is uploaded

I created a new user role and I set him a permission to upload to media, when the user finishes to upload he gets an error: an error occurred in the upload. please try again later But the file is ...
1
vote
0answers
22 views

wrong media url in wordpress

Having the weirdest issue in a clean Wordpress installation. The media urls are being written with "hhttp" instead of "http". so, for example: http://dev.mysite.com/wp-content/uploads/... would ...
0
votes
1answer
35 views

File upload in WordPress

I am trying to upload a file through a custom form into WordPress directory but not able to upload it. My code is: <input type="file" name="attachment"> <?php $uploaddir= '/home/a796f80a/...
1
vote
2answers
34 views

Select image sizes you want to be uploaded

Would it be possible to be able to select the image sizes you want to be uploaded when you upload an image? E.g., I have these image sizes: // Set Media Sizes set_post_thumbnail_size( 864, ...
0
votes
0answers
10 views

show attachment details screen immeditaley after Wordpress image upload

Immediately after wordpress image upload I need to show ATTACHMENT DETAILS screen with title,caption and other details so that admin can immeditaley edit these fields.Now it is showing only credits ...
1
vote
1answer
19 views

Add a background image for Custom Post Type archives page

I have a Custom Post Type "Vacancies". I have successfully created a Sub Menu Item in the admin menu "Background". I would like to show a file upload form to allow the admin the ability to upload a ...
0
votes
0answers
221 views

Image upload to media library fails. Folder won't create, database insert fail, XAMPP Windows

Environment: The WordPress site is on my local laptop, 4.9.6. Windows 10, XAMPP installation, PHP 7. The procedure works fine on the remote production server with LAMP. Problem: I'm trying to upload ...
0
votes
0answers
12 views

how to upload a image or save in specific folder then display?

i m creating a simple image upload form .. i want to save it specific folder ? but how to do it in in wordpress please help me to do it i want to save it on my wp-content\themes\docdirect\images\...
0
votes
0answers
14 views

Customize wordpress media uploader and attachment fields

I am trying to customize the wordpress media uploader. Example: Instead of two tabs(Upload files, Media library) I want to have one tab where Upload files comes before media library. But I don't want ...
0
votes
2answers
71 views

How to disable post-thumbnail from generation?

In my theme there is a set of add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 470, 680 ); which is actually generating one more image besides the default small,medium,medium-large,...
0
votes
0answers
35 views

Using media_handle_upload with array

I have duplicable file inputs in a form, and I would like to upload them to WordPress media library using media_handle_upload. A form looks like this: <form class="form mt-5" method="POST" action=...
0
votes
0answers
16 views

Adding an Image Upload Button to User Profile

I am attempting to add a local image upload button for the user to upload a profile picture rather than using Gravatar. I found this question/answer over on Stack Overflow so in my callback function ...