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
1answer
13 views

Show media url immediately after upload in media uploader

do anyone know a plugin OR override to show the image url immediately after upload - in the media uploader (so not via post/ page-upload) ? Now it's like -> upload -> edit -> right side is the url I ...
0
votes
0answers
12 views

wp_generate_attachment_metadata(), display image content after post, why?

I succeed to upload and attach an image for an article created in frontend in wordpress, otherwise when I used the wp_generate_attachment_metadata() after the generation I have something like that : ...
0
votes
0answers
10 views

When editing images, apply changes to specific image size

The image editor only has these options: Apply changes to: All image sizes Thumbnail All sizes except thumbnail I have a custom image size that that I'd like to only apply the changes to. Is ...
0
votes
0answers
16 views

Media is not getting uploaded on specific site using wordpress xml-rpc

I am using WordPress XML-RPC to create post from one WordPress site to another WordPress site. Following is my code, my code is using these two functions. function ...
0
votes
1answer
19 views

Upload folder is not writable, even when permissions are correct

I recent migrated my site from Godaddy to Webfaction. On migration, I get this error: Upload folder is not writable. Export and file upload features will not be functional. Naturally, I check ...
0
votes
0answers
14 views

Is it possible to add a custom tab to the Featured Image Modal and if so how?

I tried using the media_upload_tabs filter but that didn't work. This question looks very similar to this Adding A Custom Tab To The Insert Media / Add Featured Image Modal but there that wasn't ...
0
votes
0answers
17 views

Extract a .zip by uploading using file in wordpress

I am uploading a ZIP folder that is saving as zip, but I want to save it by extracting it. Where can I edit the file for it?
0
votes
1answer
31 views

How to split my uploaded media into directories?

I am reading the documentation of WordPress Media Library and it seems to me that it doesn't allow me to split my uploaded media into directories. Is it true? Why this choice? How can I implement ...
0
votes
0answers
15 views

Redirect all multisite uploads to single folder

I have a network of multisite blogs which much operate separately for reporting and small functional reasons, but which share a lot of the same data and imagery. I am looking for a way to redirect ...
1
vote
2answers
36 views

Hide images from anonymous user?

I'd like to set my WordPress (self-hosted) site up so that you can only view images if you're logged in. I want it to be impossible to view the images without being authorized as a user of the site. ...
-1
votes
0answers
42 views

Adding A Custom Tab To The Insert Media / Add Featured Image Modal

The goal here is to be able to host images via an external CDN -- in this instance I want to leverage Adobe Scene7 because of it's dynamic imaging abilities. Scene7 is great because I can store one ...
0
votes
0answers
29 views

How To Force User to Enter Post Title First When Adding New Post

This is my first ever question here and In a wordpress newbie so please bear with me. Using a plugin, I set a custom upload directory, to save the uploaded media (post images and featured image) in ...
-1
votes
0answers
16 views

How to upload image from an external link and save that image in upload folder?

$img = ABSPATH.'wp-content/uploads/2014/07/'.$proimg[7].'large'.$proimg[8]; file_put_contents($img,''); Here is the external link where I upload images. I have done everything, but the images does ...
0
votes
0answers
57 views

Custom Meta Boxes repeatable field show on single.php

I have some code that adds a Metabox, with repeatable fields to the edit screen of the WordPress backend. It looks like this: The code, I have in the functions.php, looks like this: function ...
0
votes
0answers
19 views

Force image rename based on post title for the following script

I am looking to have this upload rename image titles to match the post title. So instead of 0182012018228_sometitle.jpg it would be like daves-and-busters.jpg and the next file call ...
0
votes
0answers
11 views

Download Manager in a Multisite setup

I'm currently running a Wordpress Multisite (Network) and need a solution for a download manager. The specific requirement is that there should only be one file repository/db table that is used by all ...
0
votes
0answers
22 views

How to add a profile pic and biographical info at registration page?

I am running a multi-author blog which is also open to new authors registrations. How is it possible that new authors are forced to include the following information to the registration page ...
0
votes
1answer
31 views

add_image_size() and uploading the exact size leaves 1x1 image in uploads

I've added an image size of 370x150 which works, but if I upload an image to those exact dimensions get_post_thumbnail() no longer works as expected. If I look into my uploads folder I'll have a ...
0
votes
1answer
30 views

Categories in media library

I want to add a rather big sound collection to the media library. The problem is that i can't add category to the bunch of files while uploading them... I even can't add it to one uploading file.... ...
0
votes
0answers
60 views

Pull latest Youtube Video from json url and make new post

I am trying to automatically "add-new" Wordpress post when a Youtube User uploads a new video. Using wp_insert_post(); I can echo what I need to, but how do I write a function that determines: "If ...
0
votes
0answers
8 views

Backbone is breaking the media uploader

Greets, when using backbone in a plugin of mine the media uploader on the post edit page stops working properly. The uplaod button doesn't work anymore and the drag and drop functionality doesnt ...
0
votes
1answer
28 views

What does Wordpress media uploader do to image files on upload?

This question is specifically for images and what optimisation happens to these files when they are uploaded via Wordpress Media Library? Images .jpg .jpeg .png .gif And how is ...
1
vote
0answers
52 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
0
votes
0answers
13 views

How do I allow family commenters to upload photos?

I'm trying my first WP site - a family blog. I'm hosting it on GoDaddy with a few other websites I work on. Less than 20 people have access/permission to the family site. We're collecting old family ...
0
votes
1answer
15 views

Change path to child of page when uploading image via custom field

Is it possible to change the path of an image when it is uploaded via a custom field so that instead of appearing as www.mysite.com/wp-content/uploads/2014/05/file.pdf it will appear as ...
3
votes
1answer
64 views

What are the security reasons to disallow Microsoft Word uploads?

When I try uploading a .doc or .docx file I get this message: Sorry, this file type is not permitted for security reasons What are the security risks involved in a multisite installation ...
0
votes
3answers
43 views

Check for file extension or mime type fails

I need to check if a uploaded file has .csv or .txt as extension and I'm doing as follow: $uploadfiles = $_FILES['uploadfiles']; echo '<pre>'; var_dump($uploadfiles); echo '</pre>'; if ...
0
votes
2answers
51 views

Using subdomain to upload media/images etc on 2 different blogs

Is possible to use a subdomain, for example: media.mydomain.com pointed to /var/www/mediauploads, for two different domains? Since I have mydomain.com and mydomain.it blogs, would be nice to upload ...
0
votes
1answer
15 views

media_handle_sideload on a file already on server

I want to attach a file already on server but outside the wp uploads directory to a post, so I tried the media_handle_sideload and used the download_url() on the file's URL I'm trying to attach, ...
0
votes
1answer
35 views

Shared upload folder in wordpress multisite

I have a wordpress multisite, where I would like all the images uploaded through the main site (mysite.com) to be accessible to sub1.mysite.com and sub2.mysite.com. All the images should be in one ...
3
votes
1answer
80 views

Disable TinyMCE Drag and Drop

I would very much like to disable the drag and drop upload feature for tinyMCE (both the default one and the wp_editor() one) because it interacts with my custom pop up menus - (WP Trac). Right now ...
1
vote
1answer
271 views

WordPress (3.9.1) MultiSite Permissions. Is chown the answer?

The situation: I'm working on a WordPress MultiSite for a charity. They have a Dedicated Apache Server running multiple Domain Names (Accounts). I preparation for Development & Production, which ...
0
votes
0answers
15 views

I have a wp_media uploader question [duplicate]

Does anyone know how to code: if($userImagesCount > 500){ stop wp_media_uploader; } not for admin but within the wp_media .edit-gallery Thank you
0
votes
0answers
20 views

Media upload freezes according to metabox order

I created a custom post type and 3 metaboxes for it in the admin section. It looks great and the admin panel for that custom post has, indeed, the 3 boxes. These boxes have all the same code (with a ...
0
votes
1answer
253 views

How to upload multiple images on frontend to ACF gallery using update_field

I'm trying to save images submitted on a frontend form in a way that they are accessible via the ACF backend. In how to upload an image on ACF with update_field on wordpress, someone provided a ...
0
votes
0answers
30 views

Wordpress media uploader button is not working

I'm developing my own plugin. for that i need to upload logo images. since i'm a newbie in wordpress i searched so many tutorials. the code i used is pasted below. the problem is when i clicks on the ...
0
votes
0answers
45 views

get the post thumbnail returns the full size

The function get_the_post_thumbnail($post->ID, 'thumbnail'); not always returns the thumb size of the image (which is 100x100) for some posts it does but for most of them it doesn't. Even though ...
0
votes
0answers
37 views

Adding Attachment Display Settings in custom media frame

I made my own custom media frame : $('.add').bind('click', function(event) { event.preventDefault(); // Create the media frame. file_frame = wp.media.frames.file_frame = wp.media({ ...
0
votes
0answers
56 views

Change media URL (images)

Similar questions have been posted, but none have been resolved. I'm looking to, programmatically on upload, change the URL of a media file to its URL on a CDN. I.e. modify ...
1
vote
1answer
54 views

Add file extension to temporary file

I am using download_url() to download a temporary file and want to save this file in my uploads folder using media_handle_sideload. This works fine with files that have a file extension. ...
0
votes
0answers
64 views

wp_editor with image upload

I would like to have a wordpress text editor on my site where users can add post and add images to the post. I'm using wp_editor in the code below. If I'm logged in as the admin and go to the live ...
0
votes
1answer
198 views

file_exists() open_basedir restriction in effect. File(X) is not within the allowed path(s): (Y) in F:\*\*\*.com\httpdocs\wp-includes\functions.php

I installed wordpress on a windows server with Parellels. It is a shared hosting. When i upload images it gives the following warning: Warning: file_exists() [function.file-exists]: open_basedir ...
1
vote
1answer
57 views

WYSIWYG editor with image upload for “Normal Users” [closed]

Can someone tell me is there a plugin doing this?(This has been asked over 6 years from bbpress.org) I have tried lots of plugins but no one does exactly what I need, 1) A WYSIWYG editor in bbpress ...
-1
votes
2answers
106 views

Display Image Upload from Contact Form 7 on Redirect Page [closed]

How would I show an image upload, a photo of someone, in the Thank You page. It's for a competition. NB: The user uploads an image and then that image is shown on the thank you page. I need to ...
0
votes
0answers
16 views

Insert images to post without Insert Media Window

Is it possible to insert images to a Wordpress site with having to use the Insert Media window. I have a forum type site where I would like people to be able to add images to post they can create but ...
1
vote
2answers
37 views

How to side load an image from a service

I am currently working on a WordPress plugin that creates dummy content. I'd like to also have the plugin create random images using a service like http://lorempixel.com. The problem however is that ...
0
votes
0answers
46 views

How to give a File Upload option in wordpress Widget backend?

I want to use a file upload Input option where User can upload a Excel file on backend and the widget will save the file in uploads directory and save the file link in the $instance variable of ...
0
votes
1answer
56 views

Custom post type media upload error with custom user role

I have created a custom post type named product and assigned a new role manager for it. Everythign works fine, except the media uploader for product. I can even upload images without any error ...
0
votes
0answers
16 views

All files unattached in Media Library

After moving to new host all files unattached in Media Library, need a way to re-attach them. Thanks
0
votes
0answers
17 views

Determine mime type, wordpress mechanism

I need to tell file mime type. I'm really don't want to deal with PECL finfo extension. I don't know what php version client server has. Since I'm using wordpress, and it does have file upload ...