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
8 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
1answer
234 views

I want to replace a media file (pdf) with an updated version

I have an updated version of a pdf file which is linked to several pages and pending posts. I want to replace the old version with the new one and keep all the existing links. Thank Priya
2
votes
2answers
2k views

Adding upload button in metabox

I want to add upload image button for the images and retrieve url. Can someone pls help me, i have been trying this for quite a few days. I'm using code from this thread Create more Meta Boxes as ...
0
votes
1answer
257 views

Is it possible to upload text files (e.g. JSON) to wordpress blog in any way?

I want to show some code but it needs to be in a raw format, is it possible to upload a simple text file? I'm aware of the file type restrictions but if there is a nifty trick to do this it would be ...
0
votes
2answers
4k views

Allow contributor role to upload images and not edit already published articles

I have the following two requirements: I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones ...
0
votes
0answers
15 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 ...
3
votes
1answer
74 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 ...
0
votes
1answer
238 views

Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback

I am building a simple contact form (non-admin) that has an attachment field. Of course I can just handle the upload via WP's wp_handle_upload function. However, I would like to give my visitors a ...
0
votes
1answer
54 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 ...
1
vote
1answer
901 views

How to solve: An error occured in the upload

This error message appears when I try to upload any picture. Currently I am using WordPress 3.8.
0
votes
0answers
10 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
1answer
235 views

Add a file upload field

I am building a plugin which has a file upload field in it's settings page. The files should not be image files but should be .doc, .txt etc. Struggling with the code for it. Any help would be greatly ...
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
30 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
529 views

Wordpress 3.5 Media Uploader - Only allow 1 upload and certain file types

I am trying to include the new WP Media Uploader in a Custom Meta Box. I found this tutorial: http://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/ However i am looking for ...
0
votes
1answer
803 views

Error uploading files bigger than 58 MB

For uploading files bigger than 58meg I get HTTP error. or IO error when using media uploader or 500 Internal Server Error when using browser uploader in WordPress v3.5.1 Multisite . It seems to get ...
3
votes
1answer
393 views

wp_generate_attachment_metadata returns empty array

foreach ($_FILES as $key => $file) { $uploadedImage = wp_handle_upload($_FILES[$key], $upload_overrides); pre_r($uploadedImage); if ...
0
votes
1answer
291 views

wp_editor on front end media upload jquery live error

I have set up a front end editor for a project I am working on. The editor is inside a div with display set to none. The user will click a button to get the editor div to show up. The issue I am ...
1
vote
1answer
313 views

How to disable plupload completely from latest wordpress 3.6 and make browser upload default

How can I disable plupload completely from latest wordpress 3.6 and make browser upload default? Thanks in advance.
0
votes
1answer
615 views

How to delete file uploaded by Plupload

I follow the steps from here to integrate the plupload in metabox. Everything is working fine. But I do found one disadvantages of this guide. When I click 'Remove' link from the uploaded images, it ...
3
votes
1answer
284 views

Way to force media uploader use custom image size

I've implemented media uploader to my custom category image plugin and was wondering can I somehow force it use my custom image size I've set only for categories. ... So in screen shot above, I'd ...
0
votes
2answers
874 views

Uploaded images do not show on localhost

I'm working with Wordpress 3.3.1 on a local installation. I've uploaded an image file and it doesn't show up. The base directory is a symbolic link /var/www/wordpress/ that leads to ...
0
votes
0answers
50 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
1answer
125 views

How to add “alt” attribute for image during upload at WP front-end?

At WP Front-end I create a upload form for users. That form has three input fields (title, tags and upload). So I want to add "Title - Tag - file_name" as alt attribute for images during the file ...
1
vote
3answers
310 views

Site running slow on new server?

I recently uploaded a website to a new 123-reg server on a single WP installation (www.moseleycoachsales.co.uk). I had developed the site on my own hosted multisite environment ...
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
vote
2answers
655 views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
-1
votes
0answers
36 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
28 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 ...
0
votes
2answers
496 views

Cannot upload featured image to a custom post type

For some reason I am not able to upload images OR set the Featured Image on a custom post type in my custom wordpress theme. I have added theme support of post-thumbnails to my functions.php file and ...
0
votes
1answer
340 views

add_image_size() to crop images into squares?

So I know about setting custom images with add_image_size('name',X,Y,Crop?) which is cool but I need to build something that will crop images, regardless of their size, into squares. Basically, I ...
-1
votes
0answers
15 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
1answer
764 views

Add SWF file to wordpress through custom template

I am trying to attach an swf file to my website. I have that swf file in my local system. But wordpress is not alowing me to upload the swf file into the media library. I want to add that swf to my ...
0
votes
2answers
618 views

Get image post ID in media upload

I am developing a plugin that adds a Custom Post Type to my theme. It's a retail directory and the post type is a retail listing. Everything is working fine. I can upload content to the DB and then ...
3
votes
3answers
2k views

Saving Media - Which Hook is Fired?

Howdi, I am trying to fire some code that will occur when I save an image in the media library, as per usual, I select the file, upload, enter the meta data and then click save. At this point I want ...
1
vote
1answer
256 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
1answer
241 views

Upload unnattached image from frontend

I am using the below function to let users upload files from the front end. It works great except that I would like the file to NOT be attached to any post. Currently, the file is automatically ...
0
votes
1answer
485 views

Saving/Writing/Adding file to upload folder

Within a plugin I am generating an image, I would like to save this image to the upload folder and update the WPDB with the location of said file. I cant find any build in wordpress functions to ...
2
votes
3answers
614 views

Getting Details Of Uploaded Image

I'm using Wordpress' upload system (as explained here) on my plugin's admin page. I can upload an image and get this image's URL. But i need attachment ID, image caption etc. How can i reach them? I ...
0
votes
1answer
799 views

The uploaded file exceeds the upload_max_filesize directive in php.ini

I'm trying to upload a XML file through Wordpress Importer It shows this error, no matter what the size of the file is. Even 10kb file throws up this error. My php.ini settings were set to 100MB, ...
0
votes
1answer
1k views

Batch upload to create posts each with one image, headline, and body text

I've been handed 300 images, 300 headlines, and 300 paragraphs by a client. Is there a way for me to place all of this in a CSV file (or other format) and upload the whole shebang into a fresh ...
0
votes
1answer
470 views

Prevent users from accessing mp3s in my uploads folder?

I have mp3 players set up to play mp3s on my site. The mp3s are all being uploaded to the uploads folder. I don't want people accessing these directly, meaning I don't want people to be able to ...
0
votes
1answer
231 views

How to use getimagesize() of image upload?

I need to check the resolution of an image I want to upload via media box, and then upload it into a custom directory. As a starting point I used part of the code from How Can I Organize the Uploads ...
0
votes
0answers
17 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
1answer
724 views

wp_handle_upload returns empty error array

I am trying to do an upload via ajax and really dont want to use the regular wordpress media uploader. It is too much stuff and all i want to do is upload single image. I have everything working the ...
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
21 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
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.... ...