Stack Exchange Network

Stack Exchange network consists of 175 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
9 views

Wordpress Media URL is showing // in URL

I am facing a problem my website media URL are showing like domain.com//media due to this my website is working fine without SSL but when i open it with https:// all my media images disappear. I want ...
-1
votes
0answers
4 views

how to create multiple image up-loader metabox? [on hold]

How to create multiple image uploader metabox?
2
votes
1answer
17 views

Create custom tab in WordPress 5 media upload

Can someone help me create custom tab in WordPress media library. With WordPress version 4 i used to media_upload_tabs function to build that nice work. But now, in WordPress version 5 the function is ...
0
votes
0answers
19 views

Upload automatically html files

I have about 1400 html files and I want to upload them in a wordpress site where I am administrator. I want to publish them as blog posts. How can I achieve that automatically? Thank you.
0
votes
0answers
11 views

Possiblity of bulk restore original image

Is there a possibility to use a bulk restore function of cropped images? At the moment the only possibility to use this is on each single image: Is there a way to apply this to all pictures in my ...
0
votes
0answers
48 views

Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?

I'm currently using a plugin that generates a PDF for customers but the URL is way too long. For eg - https://www.mywebsite.com/wp-content/uploads/pdfuploads/666666.pdf. Here's the specific code from ...
0
votes
0answers
18 views

Using unzip_file() to get contents of file

With each post, I save a zip folder as an attachment containing a json file with large amount of data. When looping through posts, I need to open this folder and retrieve the contents of json file but ...
0
votes
1answer
13 views

Plugin writing: access file that was just uploaded

I am having trouble finding a solution for following problem: The user should upload a file in the menu of my plugin; the file is uploaded to the media folder by using media_handle_upload(file), ...
0
votes
0answers
9 views

External file server, to store and exchange files between wp-frontend and c#/winforms application

This is my first question here, so please bear with me. I hope its not too unspecific. Im stuck since several days now and i dont seem to find the answer myself. What i want to do: I want to build a ...
-1
votes
1answer
46 views

Can't upload files 1MB+ [closed]

I can't upload files with more than 1MB, but i haven't change any configuration. I have a lot of files with more than 5MB uploaded before, but i don't know why now i can't... The error is "Failed to ...
-1
votes
0answers
9 views

What is the procedure to upload interactive html figures in wordpress?

I have an interactive html figure file. I want to get it uploaded in the wordpress . I have tried various options and still there I cant upload the image directly into the page. what is the procedure ...
0
votes
0answers
9 views

Uploading images causes LogOut

We are experimenting an peculiar problem randomly when we upload an image. No matter the size or kind of image this will trigger a logout to every user that is uploading in a post the images. We ...
1
vote
0answers
7 views

Add media library items to Menus using the Customizer (via Media Manager not URL)

You can add links to files in the media library URL via the Custom Links panel of the Customizer but for clients this requires multiple steps including cutting and pasting a URL from the media library ...
0
votes
0answers
18 views

How to include a video upload in a custom widget inside a plugin?

I tried to add a video upload inside a widget which is inside my plugin. I did a widget class Home_Parallax_Video which extends WP_Widget to do it based on WP_Widget_Media_Video. The form contains ...
0
votes
1answer
18 views

Uploading images to custom table

I'm building my own WordPress plugin and I have a form where I put in some data. In addition, every entry has an image. Does anybody know how I can upload an image using the WordPress media selector?
0
votes
1answer
30 views

Front-End Upload media with category

Hello i have a page with a little uploader to upload media in the library, here is my code : <?php $post_id = $post->ID; if ( isset( $_POST['html-...
0
votes
0answers
23 views

Automatica crop image in wordpress 5.1?

original image size 777x518 when uploading this image it shows only 575x416 in WordPress 5.1. It automatically crops this image.I want, When uploading an image it will display your original size. How ...
0
votes
0answers
21 views

Upload and configure WordPress

I'm trying to install WordPress for my website, and I need it to configure but I don't know how. The web hosting company does not use cPanel. I downloaded the WordPress .zip file from the official ...
0
votes
0answers
31 views

Images uploaded via Gutenberg image block are cropped

I'm trying to add images to a post with the following work flow using the Gutenberg editor on version 5.1. Add an image block -> select upload -> select image. The image is uploaded to the page and ...
0
votes
0answers
27 views

Add Media button of WP_Editor on custom role profile page not working

I have a custom role defined which has a separate profile page in the front-end. In the profile page there is a wp_editor with Add Media button. But the image is not being attached. This is the error ...
0
votes
0answers
37 views

Upload mime types for ai illustrator file

Maybe this topic needs updating because i have certainly used this in the past, but today adobe illustrator ai files are not uploading. So I'm using gravity forms plugin to upload my files. When I ...
0
votes
0answers
6 views

Can't upload an image with Guttenberg or Media Library

I had previously built a site using the Guttenberg editor for myself back when it was an opt-in beta, and I had no issues getting that site up and running, or uploading images. Yesterday, I started a ...
0
votes
1answer
27 views

Where to store sensitive uploaded file?

I'm developing a plugin. Where is the best place to store a user uploaded file that is sensitive in nature? It should not be web accessible. Given the encoding of the file, it's necessary that it be ...
0
votes
1answer
17 views

media sideload image and Google Content

I'm trying to take a pages og:image from a URL and add it to the media library and post meta. Works great until I hit a google user content url. $image_url = "https://lh3.googleusercontent.com/...
0
votes
0answers
12 views

File Upload with JS and CSS

Whats wrong with the below code, it does not show the file I choose to upload: // PHP Code: $form .= '<script class="jsbin" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">&...
1
vote
0answers
17 views

Stop WordPress from generating redundant image size

I have on media settings the following setup: The problem is that when i upload an image that's exactly 640px wide it makes a copy like so: image.png image-640x640.png That would make sense only if ...
0
votes
1answer
128 views

Allow EPS file upload - two EPS files have different MIME types

I got this error message when trying to upload EPS-files 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
19 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
11 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
22 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
6 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
1
vote
1answer
14 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
1answer
17 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
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
7 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
23 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
29 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
43 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
25 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
13 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
158 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
46 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
30 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 ...
1
vote
1answer
52 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
162 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
16 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 ...