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

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.

0
votes
0answers
14 views

Error # - 200: HTTP Error

I have a wordpress site. Since last five days I have problems with uploading. I am trying to upload a pdf file in media and also in WooCommerce. Sometime files upload without any interruption. But ...
0
votes
0answers
25 views

Allow uploading of EPS files using add_filter('upload_mimes') on PHP version 7.2

I get this error message when trying to upload an EPS-file to my WordPress Media Library: Sorry, this file type is not permitted for security reasons So I added this snippet to my functions.php ...
0
votes
1answer
14 views

Picture upload issue - broken thumbnail

I appreciate any advice you're willing to give me -- I maintain website content for 1 client on the side, and suddenly I'm having issues with new photo uploads that I've never had before. I'm ...
0
votes
0answers
8 views

Customize Add Media screen

When using the Add Media screen from posts and pages, I'd like to group a few of the options (added by NextGen Gallery but not used very often) into sections that can be opened and closed like ...
0
votes
1answer
13 views

Thumbnail images missing in WP media library

I have built my own WordPress theme and applied it to my WordPress website. The issue I am having is out of the blue, the thumbnail images from the media gallery have stopped loading in and now just ...
0
votes
0answers
4 views

Restrict upload size (storage) by membership status

Is there a way, a plugin, to restrict some members in MemberPress to upload a certain amount of Mbytes? Thanks alot! neuhaus3000
0
votes
1answer
9 views

How to set a contact forms total size limit

I have a client who wants to be able to upload either one 30MB image, or several smaller images, which in total amounts to 30MB. Is there a way to solve this for Contact Form 7 or any other forms ...
0
votes
0answers
20 views

How to get the text from PDF, doc and txt file

I've a custom post type called "Document" in my wordpress project which allow users to upload a PDF (.pdf), Word (.doc, .docx) and text (.txt) file. Once the user upload the file, some text of the ...
0
votes
1answer
16 views

Dynamically create Permalinks for uploaded files?

I have a custom page template, it lets users upload files using media_handle_upload() so everything is stored consistently in wp-content/uploads/20yy/mm/ I also store the filenames (and user_id, etc.)...
0
votes
0answers
16 views

I use wordpress plugin Custom upload dir,But it not work for woocommerce CSV import images [closed]

I need to build store wordpress+woocommerce. and I use plugin: custom upload dir to custom the upload directory! whent I post product myself,the pulgin is work! which product images are upload the ...
0
votes
1answer
11 views

Is there a way a user/member can upload a file and link it in his profile page?

I would like to know if it's possible, with MemberPress or other plugin, for a member to upload an audio file and create a link on their profile page so other members can download the file. Thanks a ...
0
votes
0answers
13 views

How to manually set an attachment in a post?

I need to manually set an attachment in a estate post with custom php. When it was the wordpress that inserted the image into the media library, this image appears in the post on frontend. However, ...
0
votes
0answers
6 views

Media File Replacements

I consistently have an issue in my media files. I frequently need to replace an existing pdf with a newer version. I go to the media attachment page, click "replace media: upload new file" with ...
0
votes
1answer
21 views

Wordpress Images, Header Videos and Carousel is not working live but perfect on Local Host Is It FTP? Filezilla?

the website works perfect on localhost. But the Wordpress Images, Header Videos and Carousel is not working live. Could it be Filezilla, the FTP? I tried everything! My client is waiting and I lied ...
0
votes
0answers
9 views

Media Library: Remove replace images of selected author

Bigger WordPress install here: ~14k posts, 20k images in media library (plus different image sizes - cropped & formats). Images are used - as featured image of multiple posts - inside content (...
0
votes
1answer
17 views

Can't upload CSV file to plugin directory using custom upload form in admin panel

I need some assistance here. So far, i build a plugin, that are able to import data of a CSV file and parse it into fields of a custom post type. At this point, I would like to make a form to ...
0
votes
1answer
32 views

How to upload .tex files in wordpress?

I am trying to upload tex files in my wordpress site. The methods I have tried and failed or the following. First of all the error I got is, Sorry, this file type is not permitted for security ...
1
vote
1answer
23 views

Can I hide certain upload folders in media library [duplicate]

A Plugin ( download monitor ) saves uploaded files in a certain folder called "dlm_uploads" within the WP upload directory. All files are visible in Media Library. Unfortunately the upload path cannot ...
0
votes
1answer
27 views

Security: AWS (shared hosting) claims template file malicious

Recently, our hosting platform (AWS) notified us of a malicious template file: /wp-content/uploads/tcb_lp_templates/templates/tcb2-bright-content-page.tpl On closer closer inspection, there are quite ...
0
votes
0answers
10 views

How to decide the next post to load when using infinite scroll?

I want to add infinite scroll. But I do not want to show random posts/latest posts/most viewed post. But I want to show the posts from certain category/tag. How can I do that. I am very naive in ...
0
votes
1answer
40 views

How to wp_upload_bits() to a sub-folder?

I am using wp_upload_bits() to copy an obtained remote image... $upload = wp_upload_bits($file, '', wp_remote_retrieve_body( $get )); Image source example: https://logo.clearbit.com/starcomww.com ...
0
votes
0answers
27 views

What is wrong with my wp_insert_attachment code?

I am attempting to upload company logo images to my Media Library - but I am noticing some problems... Namely, some of those images seem to come in at 0Kb created. Source image URLs are all like ...
0
votes
1answer
27 views

Handle image file and save it to media

I have function that gets uploaded file, save it, then crop it with imagecrop and now I need to save it again to the media. I know the way, how to do that with vanilla PHP, but I need file to be ...
0
votes
1answer
20 views

ACF attachment custom field in rest response

I created an extra select option ACF field for media uploader and I would like to retrieve the associated values in Gutenberg MediaUploader onSelect. Is there a workaround for this case?
0
votes
0answers
19 views

How to detect upload image page in plugin?

I want to check admin page (from what page image was uploaded) and make a new bundle of image resizing in my plugin. But I can't recognize on backend ajax "featured image" button on category page or ...
0
votes
1answer
53 views

Wordpress upload_mimes not working for front-end uploads of 3D files

So, after the new WP updates my form will not allow certain files to upload. I have a Gravity form with an upload field to submit 3D print files. I can get one type of file to work, but not the others....
0
votes
0answers
14 views

How to stop image file names becoming image titles on upload

I have an issue where editors are uploading a gallery of images that they have downloaded from WhatApps or other sources. The file names become the image titles and then these crazy titles show up in ...
0
votes
1answer
28 views

Storing WordPress Media Library Uploaded files onto a separate domain

We are looking forward to offload assets from our website (60GB onto a 8TB/mo accessed website), to a separate webserver that will be there only for serving images from a separate domain. I know that ...
0
votes
1answer
37 views

Which Wordpress file controls the featured image upload maximum width and height of 3000px

Ok so i read a forum somewhere... that gave instructions on how to hardcode change the maximum image upload global values for "featured image" for woo commerce products, from a max of 3000px width and ...
0
votes
1answer
27 views

Adding attachment custom field metadata to TinyMCE <img> tag

I've successfully added a custom field to the media upload dialog, but now I need (1) this field to be present on the <img> tag on post content whenever an image is inserted, and (2) a way to ...
1
vote
0answers
24 views

how does wp.media javascript library work?

I'm building a custom dashboard and I'd like to add a feature which allows a user to upload an image. However, by calling wp.media() (with a title, button & multiple args) javascript throws an ...
0
votes
0answers
20 views

How can i add Excel file upload Functionality in Linkify Text

I am using a plugin Linkify text to automate links. Although I don't find any fault in the plugin I feel that adding some more functionality like importing the keywords from a excel or txt or docx ...
2
votes
2answers
156 views

Get Database Credentials from within the themes file

I have a freelancer working on a program for me. I gave him access to the theme folder via FTP. He uploaded phpMiniAdmin to that folder and, somehow, obtained the database credentials, which he then ...
0
votes
0answers
13 views

How to add a data-url to wordpress media library as image

hello there i'm trying to add the .toDataURL() from the canvas to the wordpress library, but i'm very stuck. Here is my code: function take_screenshot(e){ var ajaxurl = e.getAttribute("data-url")...
0
votes
0answers
17 views

Editor User Role can't see other users media

The Editor role can't view/access other users media. Apparently, the website was working good everywhere but a few days later we noticed that. If we assign Administration roles, it works., Actions ...
3
votes
1answer
135 views

How to assign multiple file-mime-types to extension?

we can assign extra file-types, so, WP allows them to be uploaded, like: add_filter('mime_types', 'my_mimes'); function my_mimes($all) { $all['zip'] = 'application/zip'; return $all; } But I ...
0
votes
0answers
14 views

WordPress upload folder stuck in 2017

Whenever I upload items to WordPress via the Media Library it is saved in wp-contents/uploads/2017/12. I tried disabling the year based upload setting and reenabling it but this didn't work. Is this ...
0
votes
0answers
25 views

Can you generate a featured image from two images from custom fields?

Over and over again our blog has the same featured image and all thats changing is two logos. At present we have a blank template we manually load into Photoshop and attach the two images. I have ...
0
votes
2answers
34 views

How to allow .ged file uploads

I am trying to allow gedcom file uploads. These files have a .ged extension. Gedcom files do not have a mime type. I have tried the following code with various text/types such as csv, rtf etc ...
1
vote
1answer
202 views

Unable to create directory uploads/2018/12. Is its parent directory writable by the server?

Few days ago I migrated my site to a new server and the problem started after that, before migrating everything was fine. Now, when I click on add media and select any image it says... Unable to ...
2
votes
2answers
131 views

Allowing WebP uploads?

I've tried both of these, but I'm still getting the error message: "Sorry, this file type is not permitted for security reasons." // add support for webp mime types function webp_upload_mimes( $...
4
votes
2answers
272 views

can not upload file .vtt on wordpress 5.0.1

I updated my site to wordpress 5.0.1, but now I can not upload file .vtt anymore. This function works properly on wordpress 4.9.8
0
votes
0answers
16 views

How to upload 3 attachments to current post?

I have a form which updates a post but when updating I need to be able to also upload 3 posts: <div class="form-group"> <input class="form-control" type="file" tabindex="3" name="custom-...
0
votes
3answers
95 views

Why “Store uploads in this folder” option is not showing in Media Settings in WordPress

I have two sites running WordPress 4.9.8 On one site I can see "Store uploads in this folder" option on in Media Settings On another site I cannot see "Store uploads in this folder" option in Media ...
0
votes
0answers
13 views

How to display all images “Uploaded By” an author

Similar posts have been made on this but not the same as I what I'm looking for. Ultimately I need a gallery to be shown on a page which displays ONLY the images uploaded by the user who is logged in....
1
vote
0answers
16 views

Pass additional parameter with async upload

The following image: is showing what i want to archive. It shows the default admin upload widget in where i added a checkbox that once checked would pass an additional parameter with the async upload ...
1
vote
0answers
16 views

Limit number of images to upload in wp.media function

I need to edit a plugin for my website. The plugin uses wp.media function and lets user upload images from the frontend. A user should be able to upload multiple images. But, I need to set limit on ...
1
vote
1answer
40 views

Max file size not updating

Hi I am a beginner at WordPress and am currently trying to increase my file upload size. So far I've tried two ways: The first way was to add this to the bottom of the functions.php file: @ini_set( ...
0
votes
1answer
7 views

Updating the attachment from front end doesn't show the new change

I am submitting an image to the db like this: if (isset($_POST['uploadImgCustom'])) { $myNewImg = get_post_meta($id, 'usp-file-single', true); } $attachments = get_posts(array( 'post_type' =&...
0
votes
1answer
16 views

Sanitizing existing media library paths and page links from foreign characters

I'm migrating an old WP site that supported Swedish letters ÅÄÖ in the URL, thus the site has hundrets of images containing these letters. I've searched around and found various plugins that sanitize ...