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

learn more… | top users | synonyms (4)

0
votes
0answers
3 views

How to adapt upload_dir to save files outside of WP uploads folder

We have a CPT which is used to manage various assets including image, pdf, CAD and other files. Our client would like to keep these asset files seperate from their other media files and does NOT want ...
0
votes
1answer
23 views

How to make picture appear on wordpress site shared link?

I would like to know how to make a piture appear on the thumbnail to the left of the text when I share a link of my wordpress on facebook. I dont post any images to the website, but would still like ...
0
votes
0answers
9 views

Send media uploads to different directories

I am making a website for my local primary school, and I have each class page as a separate page template. Rather than have all their uploads go into the general /uploads/ folder I'd like to direct ...
0
votes
0answers
8 views

Problem with the standard example of media_handle_upload

I have been trying to make a custom tab for the media uploader to treat some files and looked for a way to do such a thing, and found an example of it in the media handle upload page. The code I used ...
0
votes
0answers
20 views

Image upload - Cannot modify header information

i have an issue out of nowhere. Since a few days the upload of images doesnt work in 9 of 10 cases. The progress bar climbs to 100% but then everything stops and when going to the media library the ...
0
votes
0answers
28 views

Uploading .mp3 files http error - 2 “exact” files one successful other fails

I have 2 equal .mp3 files - technically different files but both exported from Audacity using the same settings and the same original audio. Exactly the same size, same content (albeit processed ...
0
votes
0answers
16 views

How to get attachements URL from author meta and display them?

I created a form for edit author with "WP User Frontend" and I use a custom meta field for multi upload images that can upload 6 images, with meta name 'management_certi'. My problem is I can display ...
1
vote
1answer
25 views

Original image not saving?

When i'm uploading a picture, WordPress doesn't save the original image, just the thumbnails? That's why when i'm setting a featured image, the link is broken. Any help to to save the original image ...
0
votes
1answer
12 views

upload_max_filesize in .user.ini Not Reflected in Media Upload

I would like to know why Media Upload does not detect the upload_max_filesize that had been set in .user.ini file as shown below. max_execution_time = 10000 memory_limit = 512M upload_max_filesize = ...
1
vote
1answer
19 views

How do I change the url displaying existing uploads?

I recently took over admin for a WP site and moved it to a new server/domain. I have changed the siteurl in the settings and the menu system works correctly but the links on these previously uploaded ...
2
votes
0answers
27 views

How to implement secure frontend image upload? [on hold]

I would like to implement an public image upload in my Wordpress Theme with ajax. What's the secure way to do this? I have read many about security problems when allow users to upload files to the ...
0
votes
0answers
12 views

plugin settings - multiple upload buttons in sections: how does sanitize_callback work?

my plugin' settings page includes a series of sections, each one contains an upload button: // create the input with the *exact* setting's name function myplugin_upload_cb($args) { echo "<input ...
0
votes
0answers
17 views

wp-video-post plugin upload loop only if uploading bigger mp4s [closed]

I know the question is very special, but I really don't know what to do. It's about this wonderful plugin: https://wordpress.org/support/plugin/wp-video-posts It's working great, but after a few ...
1
vote
1answer
55 views

Get User's Facebook Photos as Wordpress Upload

I am new and a bit of troublesome on how Wordpress work as I have plan to use it as CMS for my commercial website. I have been figuring out on how to make an image that I have retrieved from user's ...
0
votes
1answer
25 views

Moving Media Library

I downloaded all files from wp-content/uploads and copied to new Wordpres instance on localhost (Windows IIS Express also on MacOS with MAMP). Unfortunately in both cases I don't see my files in Media ...
0
votes
0answers
10 views

find uploaded files withouth a corresponding attachment in DB

We have a site with an upload directory that it's in a mess. There are thousands of files that exist on disk, but that don't have a corresponding DB attachment. At the same time, there are many ...
0
votes
0answers
23 views

Upload media Remote or Api

I couldn't find any accurate answers, therefore asking here. I have a website that runs multiple cron jobs in WordPress and generates posts from multiple resources with images and descriptions. I am ...
0
votes
1answer
42 views

Move a file from a directory to another

I have this function: function attachment_selectbox_edit($form_fields, $post) { $select_options = array( "no" => "No", "yes" => "Yes" ); // get the current value of our custom field ...
1
vote
1answer
29 views

How do I only allow downloads that are referred from my domain?

I want to restrict downloads so that users are only able to access the /uploads folder if they click a link from my domain - i.e. they couldn't access any file in `/uploads' by pasting it into the ...
1
vote
1answer
26 views

Is there a way to make my media files unsearchable?

I upload a lot of contracts, T&Cs, pdfs and audio file to my wordpress blog. I would like all of this content to be hidden from standard search engines. Is this possible?
0
votes
1answer
32 views

How to submit/upload data to database and in specific folder?

I am trying to make video plugin. Want to submit data to move the file in a folder which is in the plugin_name folder. To submit/upload I am trying the 'plugin_dir_path()' function. And it is not ...
-4
votes
1answer
41 views

WordPress Custom Fonts Problem! [closed]

I added custom fonts on my website! Its based on Genesis Framework.More then 15 days web fonts show every where,suddenly fonts missing but i checkout my fonts link and fonts deceleration on CSS its ...
1
vote
0answers
27 views

Wordpress won't write in a CIFS drive from himself

I want to connect a virtual SMB drive to a Linux server to let peoples save their files/data in a "cloud". To do this, i'm using wordpress, and now what i have to do is to let the apache User write on ...
0
votes
0answers
23 views

“image-name.jpg exceeds the maximum upload size for this site.” but image is only 11KB

I was directed to your website by my theme developer but then read that I should not post WordPress support issues, so please forgive me if this is not allowed. If it is, this is my situation. I am ...
5
votes
1answer
87 views

How can I speed up a slow loading media library?

My WordPress site is fairly large. It's being used as a blog and a CMS, with a WooCommerce shop running off it as well. There's probably over 2000 images in the media library at this stage. My ...
0
votes
0answers
16 views

Issue: CSV file upload works only when “View page source” is done

I ma having little wired issue while uploading the csv file. Here the code I have. The actual site is developed in wordpress. This is to show the issue and same issue happens in the plugin developed. ...
0
votes
0answers
27 views

Images problem in WordPress backend

After an attempt to backup an old version of WordPress in order to edit a theme, the images: Show a placeholder as a thumb in library. Can't be seen when edited. Don't show as featured images and in ...
2
votes
1answer
36 views

User logged-in from front end is logged out automatically accessing wp-admin

I have stuck in serious problem. I want to create a document and upload a word doc from front end after user login. Logged in user is admin. The plugin bp-doc uses WordPress default media uploader to ...
0
votes
2answers
43 views

File Uploader - Upload without adding to Media Library

I have an admin form for a plugin I am making. However, there are a couple of fields I need to add where the admin need to upload a document or image. When these files are uploaded, I do not want them ...
0
votes
0answers
24 views

Combine file rename function with file upload code

I have this code for upload files[images] : and I don't know how to combine with this function for rename file on upload from this post : File Rename function Thanks. case "window-image": ...
0
votes
1answer
58 views

WordPress HTTP Error on File upload

I have increased the max_file_upload_size from 20 MB to 100 MB in WordPress, but I've been facing a problem since then. Whenever I try to upload a file of any type, it says "HTTP Error" when I use ...
0
votes
0answers
13 views

How can I force media that is uploaded on a HTTPS subsite to also have HTTPS URLS?

I'm currently using Cloudflare for my Multisite's SSL. Everything works perfectly except for the fact that images are loaded as HTTP rather than HTTPS. This causes issues such as these: Under ...
0
votes
1answer
27 views

Auto move media file to cloud

I have very little space to host my WordPress website. That is why I want all my media files are stored in the cloud like dropbox, google drive etc. For example, if a user wants to upload an image ...
0
votes
1answer
26 views

Unable to Upload Files

So, I have Wordpress installed on a GoDaddy server, and I am getting an error saying: Unable to create directory uploads/2016/03. Is its parent directory writable by the server? The folder ...
0
votes
0answers
70 views

wp.media - media uploader - how to destroy instance of modal?

I have implemented a media uploader/selector with the wp.media object using the method described here. I am facing a problem having to do with large amounts of image files loaded into the modal from ...
-1
votes
1answer
25 views

Rename file after title , one small problem

I'm using this question: Change Attachment Filename which works but it has a problem. He renames every file with FileNameToRename and it's same image. What I want to do is instead of FileNameToRename ...
1
vote
0answers
16 views

How to limit the number of simultaneous media uploads?

As the title implies, is that even possible? I have tried searching but had no luck. In slow connections, I encounter connection problem with simultaneous uploads with pictures.
1
vote
1answer
30 views

transfer a file from one domain to another via wp

I want to be able to transfer a file from one domain to another via wp. I have searched Google and this site but only found info on how to transfer entire WP sites. I was hoping to find a plugin ...
3
votes
1answer
50 views

Modify Maximum upload file size text

I have an issue with user uploading large images. I have prevented this with this snippet... add_filter('wp_handle_upload_prefilter', 'f711_image_size_prevent'); function ...
0
votes
0answers
12 views

wp.media mutliple file types

I want to show in library window all documents, which consists of pdf, doc, docx. It is possible to specify more parameters in library tag like library : { type : 'application/pdf'} Thanks
0
votes
1answer
29 views

Upload image in frontend (by author) [closed]

I want my author to be able to upload an image from front-end and use it as a background for author archive page. Each author will get their own image they uploaded as a background. I am looking for a ...
-2
votes
1answer
33 views

media_handle_sideload() fails

i am used the follow script what will upload an image by URL to wp, but it fails (debugging brings "The uploaded file could not be moved to wp-content/uploads/2016/03"). But i was wondering... the ...
0
votes
1answer
11 views

How to stop a post from publishing if the file upload is not a image/gif

This is the code and i want to stop the post publishing if the file is not an image Is this possible ? case "window-image": $format = 'image'; $title = ...
0
votes
1answer
10 views

Is there a way to limit multi upload in media upload box?

What I'm trying to learn is to remove multiple upload (and drag&drop). I want a user (vendor) should be able to upload only one file when clicks on upload button. Instead of completely removing ...
0
votes
0answers
33 views

Upload media via PHP

I'm trying to upload an image to the media-section, that is uploaded as dataurl to the server. I already have the image written into the database and uploaded to the most recent uploads subfolder. ...
0
votes
1answer
12 views

Limit attachment caption characters

I want to limit the characters a user is able to enter for the image/attachment caption. There are already long captions in the system and I don't wont to touch them. Any ideas on how to do this? I ...
0
votes
1answer
23 views

Troubles with code for upload a image

can someone give me please a code for image upload ? i try many but no one works , this is what i have : $post = array( 'comment_status' => $comment_status, ...
0
votes
0answers
7 views

How to limit upload count once per session?

I'm trying to create multi vendor marketplace, What I need to know is to remove multiple upload (and drag&drop). I want a user (vendor) should be able to upload one file. Instead of completely ...
0
votes
0answers
14 views

WAMP install acts different than live install when uploading images

I have a WAMP installation of my live site running on Windows 7 using the WordPress WAMP stack from Bitnami. When I try to upload an image file to the WAMP installation, it does not work. I can see ...
0
votes
1answer
37 views

Images in Media aren't showing, not broken

I've recently moved a website from one hosting to another and the website is running in perfect order, but for one issue. All the images on the website that were uploaded from the previous hosting ...