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
2answers
625 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
1k 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 did find one disadvantage of this guide. When I click the 'Remove' link from the uploaded images, ...
0
votes
0answers
12 views

Can i add flickr,imgur etc. up-loader for my WP upload media button?

I am using wordpress latest version.I don't want to upload media to my hosting server. So i want to upload media to other source like imgur,flickr etc. and i want to authorize this upload button to ...
4
votes
1answer
604 views

Upload path/URL weirdness for the main blog of a multisite/network setup

We have a WP network (with domain mapping) that was started pre WP 3.5, so it was using ms-files.php and wp-content/blogs.dir/ to store media files. I wanted to remove ms-files.php dependency and ...
0
votes
0answers
9 views

“window.send_to_editor” only called in Wordpress thickbox/media-uploader if “insert into post” is clicked, not “save” button

I am using WordPress's media uploader by using the javascript: function handleMediaUpload(button) { //Enables returning the URL to input window.send_to_editor = function(html) { ...
0
votes
0answers
12 views

Link to a remote media library

I have been googling a lot about this issue and I cannot find a solution. I have an old website with a media library that is a bit over than 40Gb. In the meanwhile I have done a brand new one with a ...
1
vote
0answers
551 views

Share media among different domains

I have multiple Wordpress instances that live on separate domains (not a multisite installation). Since they provide the same content in different languages I'd like to share the images among these ...
0
votes
2answers
5k views

Organize media uploads in folders - I have a physical access to (my) server

I'm very new to Wordpress. With the help of my friend I installed Wordpress on my server and finally we have our web online. However, I would like to upload some content in media library but I need to ...
0
votes
1answer
2k 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
2k 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
1answer
16 views

Why would media_sideload_image() not work locally?

I designed a theme for a client that sideloads an image returned from an API. It has always worked and it's still working on their live website. My staging environment used to be a separate account ...
1
vote
1answer
681 views

Specified file failed upload test. wp_upload_handle

So I managed to write a peice of code that allows me to upload a zip file, im not even sure where it gets uploaded too, and I am doing it on my localhost with apache in control (www-data). the code is ...
0
votes
0answers
9 views

Sell Digital Files as Service [on hold]

My customer has a mobile app that sells keys, keys are file based ".dat" or any extension no problem. Each key is unqiue and can be used once per user and per mobile based on his IMEI. I'm trying to ...
1
vote
1answer
488 views

Automatically Add Caption in image

I want to automatically add caption for each picture appears in the name of the image or the alternative text example Caption add automatic
1
vote
1answer
1k 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, ...
1
vote
1answer
1k views

wordpress upload permission on nginx & ubuntu

I have a problem with wordpress upload folder permission on nginx/ubuntu VPS. keep getting the error: “asr.jpg” has failed to upload due to an error Unable to create directory uploads/2014/02. ...
0
votes
1answer
31 views

Allow user to Upload image and manipulate it on the frontend

The site I am working on allows users to post things up for sale. In the form for creating their post, there is a simple file upload field. The problem is that sometimes when users upload images they ...
0
votes
0answers
13 views

Editable PDF that has a submit button that saves the pdf as an attachment

I'm wondering if anyone has had to present an editable pdf that can be saved and submitted from a webpage? I have a careers page that I would like to have users come onto, click a button to open the ...
1
vote
1answer
7k views

Add metabox with media uploader in a custom post type [duplicate]

I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
0
votes
1answer
924 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 ...
42
votes
2answers
62k views

How can I add an image upload field directly to a custom write panel?

I've added a new page under "Pages" in the wordpress admin, and added several custom fields. I'd also like to be able to add an upload image field to the page editor - is there some way to do this via ...
0
votes
0answers
46 views

correct date for each post / photo

I need help. I published three post photos on different days with different dates. Why the dates are not in sequence but inserted according to when they were published ..!? I wish that if something ...
0
votes
1answer
483 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 ...
0
votes
0answers
25 views

File Not Found error returned when trying to access Media Library in Wordpress 4.2. Plugins cannot be installed either

Please help me figure out how to access my media files through the admin dashboard. All media files are present at the server level. I can upload a file through the admin dashboard, but cannot see ...
0
votes
1answer
23 views

How to get the uploaded image url in media_handle_upload()?

I am referring to this codex, https://codex.wordpress.org/Function_Reference/media_handle_upload There I can attach the uploaded image to the post as attachments by this : $attachment_id = ...
0
votes
0answers
19 views

How to use uploaded image as custom field in front-end and don't attach the image to the post

I am trying to make a custom field to allow user to upload image in front-end and the uploaded image url is going to be the custom field value. how can I do this ?
1
vote
1answer
491 views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
3
votes
1answer
378 views

WP3.5 Media Uploader - how to make it accept multiple images?

I'm wondering how to make WP3.5 media uploader return 2 or more items in attachement? It always runs once even if 2 items are selected. The code: $('.button').on('click', function(){ var ...
0
votes
0answers
14 views

How to store a file on serverside with Contact Form 7 [closed]

I am developing locally and i have a CF7 form with a file upload field. Now without defining WPCF7_UPLOADS_TMP_DIR it seems to work: i get an email with an image attached and i see the image file in ...
0
votes
1answer
2k 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
1answer
16 views

Why isn't my enqueuing working properly?

I followed this guide to try to enqueue multiple stylesheets in order to get this file picker to work in Wordpress. However, when I am getting an error that says Parse error: syntax error, unexpected ...
0
votes
0answers
33 views

HTTP Error When Uploading Images with HTTPS?

When uploading an image in WP with regular http, everything works fine. When uploading an image with HTTPS I get an error that says - "HTTP error." in red. Why is the HTTPS causing this problem? How ...
0
votes
2answers
195 views

Failed media upload: “The uploaded file was only partially uploaded.”

I am running Linux CentOS 5.8 and I have my web pages using WordPress 4.0. I am trying to uplad jpg photos to server via WordPress, but it randomly fails. I uploaded few photos, and then I get ...
4
votes
1answer
736 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
0answers
48 views

WordPress AJAX File Upload - FrontEnd

So I have been reading through every WordPress front-end AJAX file upload tutorial I can fine. Nothing is working for me at the moment. The one that makes the most sense to me is this one: ...
0
votes
1answer
51 views

How to add image uploader to a custom widget?

I'v built a custom widget that will show some sport scores. Scores are added trough custom post. When i open new custom post(scores) i enter their team names, score, scores. Now i want to add an ...
1
vote
0answers
34 views

How to delete uploads not in media library?

How to delete uploads not in media library? I have lot of images in my uploads folder but doesn't in media library. Exist some method how this do it?
1
vote
3answers
819 views

Removing Image Sizes for Custom Post Type

I'm trying to go about this without the use of a plugin, but actions and filters Is there a way to remove extra image sizes generated by WordPress based on the Custom Post Type? I've been trying to ...
0
votes
2answers
1k 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 ...
0
votes
0answers
14 views

Separate folder uploads for multisite

i want to use a separate folder for each site on my multisite network, i use domain mapping. i set for each site the Upload Path and Fileupload Url like this : files-mysitename ...
1
vote
1answer
287 views

Plugin or method to delete uploads not in media library?

Over time working on a local and development server I've accumulated some junk in my wp-content/uploads folder which are not in the database. The folder and database entry are fairly large and so I ...
6
votes
1answer
474 views

Custom “Uploads” Dir: “Edit Image” in Media Library broken

Directory Structure I have customized my (local) install (dev box). The current directory structure is: ./root |- wp (WordPress Core root) \ |- wp-config.php |- wp-content (Content and ...
0
votes
1answer
73 views

How to set custom upload directory per user after moving content directory

I set the content and the wordpress directory of wordpress like described in the codex: define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME'] . '/wordpress'); define('WP_CONTENT_DIR', ...
0
votes
0answers
12 views

Why wordpress can't generate metadata of big images

I have the following upload routine (compact): $movefile = wp_handle_upload( $file, $second ); ... $attach_id = wp_insert_attachment($attachment, $filePath); $attach_data = ...
0
votes
2answers
1k 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 ...
0
votes
2answers
12 views

media_handle_upload : undefined function?

I have been working with a front end upload and post creation script. For some reason calling the media_handle_upload function from my project-save.php file is returning as an undefined function. Is ...
0
votes
1answer
538 views

How to Make Thumbnail of Post Stay Animated

When I upload my post with an animated .gif, the thumbnail generates into a new image and doesn't stay animated. It will stay animated inside the post which is great. It seems to resize the .gif image ...
2
votes
2answers
784 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
2answers
554 views

How to fix the orientation of images when uploading via the WordPress Media Uploader?

I've been using the Image Rotation Repair plugin to fix the orientation of images when uploading using the Media Uploader (some images taken on my camera phone are not rotated on upload, resulting in ...
2
votes
0answers
11 views

Wordpress Media Uploader events

I want to capture the click event on the "Save all changes" button? Is there any callback method like there is when you click (window.send_to_editor) the "Insert into Post" button