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.
2,018
questions
0
votes
0
answers
15
views
media_sideload_image only works on localhost and without return id or src
I'm trying to use media_sideload_image like in this question:
Can't upload image using media_sideload_image
it works on localhost with add_filter('https_ssl_verify', '__return_false'); for testing ...
0
votes
0
answers
25
views
SFTP File Upload Failure
Starting off, I am very new to coding and servers and typically only edit existing code. Recently, I started a new WordPress site to launch an ecom business and I need to edit some of plugins to ...
0
votes
0
answers
18
views
PSD File Upload - Media Library not Displaying Thumbnail
I've managed to modify WP so it allows .ai and .psd uploads using the following code:
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes = array() ) {
...
2
votes
1
answer
15
views
Modify upload directory to use post category slug in file path on multisite installation
I am using the default post type and category taxonomy to manage the content on an in-development website that is using WordPress multisite. There are categories defined like "bylaws" and &...
0
votes
1
answer
22
views
Featured Image add tab
I was wondering if there's a hook/function to add a new tab to the Featured image modal window as shows in the picture below:
I've found this thread How to add new tab to media upload manager with ...
0
votes
0
answers
27
views
How to save Wordpress post and attachment images from front end using media library?
I'm developing a wordpress page to submit a post and its images attachment. I don't use input type="file" instead use jQuery wordpress media library.
frame.on("select", function (...
0
votes
0
answers
20
views
wp media uploader and ID3 tags
When I upload audio with wp media uploader using the following code, I can see all this data:
wp.media({
library:{
type: 'audio'
}
})
.on("select", function(){
var ...
-1
votes
1
answer
16
views
Uploading media from non-local host computer
I am working on a Wordpress site that is locally hosted on another computer. I have admin privileges so I should be able to make the changes I need, but I am having trouble uploading new media. I keep ...
0
votes
0
answers
35
views
Changing upload directory temporarily
I have various media file uploads that I need to section off into different subdirectories, for example:
example.com/assets/Uploads
example.com/assets/team
They all go under "/assets" but if ...
0
votes
1
answer
43
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 ...
0
votes
1
answer
54
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/...
0
votes
0
answers
28
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 ...
0
votes
0
answers
50
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
...
0
votes
0
answers
34
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 ...
0
votes
0
answers
31
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 ...