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

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 ...
0
votes
1answer
13 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 ...
0
votes
0answers
9 views

Sell Digital Files as Service

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 ...
0
votes
0answers
12 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 ...
0
votes
1answer
24 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
45 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
0answers
22 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
0answers
16 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 ?
0
votes
1answer
21 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 = ...
-1
votes
0answers
16 views

Filesize() Error on Upload Advanced Custom Fields [closed]

This is a long shot, but im all out of options as im getting no response from the support at ACF. Whenever i try and upload a file using the file field i get this error [19-Aug-2015 17:36:52 ...
0
votes
0answers
11 views

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

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
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
26 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
0answers
39 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
33 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?
0
votes
0answers
11 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 ...
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
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 ...
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
0
votes
0answers
47 views

PHP upload multiple files with different input field names using media_handle_upload

I'm trying to upload multiple images with different names from input fields on my WP site. The images will be attached to the post as metas. postThumbnail will be the post's featured image and ...
-1
votes
0answers
41 views

Maximum upload file size not reflecting to php.ini [closed]

My problem is that when I check to wp-admin/media-new.php I see Maximum upload file size: 8 MB. Now I change the php.ini located at /usr/lib/php.ini I change the upload_max_filesize to 64M and ...
1
vote
1answer
15 views

Removal of Media Gallery pictures

When I delete pictures from the media gallery ,does it delete the photos from the post that has been published?
0
votes
2answers
34 views

Why is Wordpress' file upload limit so low? Is changing it harmful?

Why is the WordPress upload limit set to 2mb? This seems prohibitively low, especially when almost everyone has broadband these days. I know this can be overridden, but I was trying to find a reason ...
0
votes
0answers
9 views

Modifying WooCommerce Admin Menu causes Error in Media Upload

I'm trying to modify the WP-Admin menu for ease of use. I'm using standard code-based modifications utilizing the global $menu variable. global $menu; if( class_exists( 'woocommerce' ) ){ /* This ...
0
votes
1answer
22 views

How to create an uploads subfolder on a multisite setup?

I have a plugin which will create a folder inside wp-content/uploads, using this code: //Generate stuff on plugin activation function sample_plugin_activate() { $upload_dir = wp_upload_dir(); ...
0
votes
0answers
8 views

Compress full-size image into a separate custom size

I need to have a custom image size (or else) with the same resolution as the original uploaded image, with a jpeg quality of 60. The reason behind this is because the images must be shown sometimes in ...
0
votes
1answer
22 views

Problem in upload wordpress with net2ftb [closed]

I create a site with free host by auto setting and upload wordpress on it. Now i want to upload a module that i write. But i don't know how to do it ? I hear that i can do it by "net2ftp" Thanks in ...
0
votes
0answers
17 views

How to make READ ONLY on the FILE System?

Let's say the WP site is under attack. Then we want to prevent any FILE WRITINGS, including: Uploading of the New Files Any way of WRITING the new files into file system So that the System is very ...
1
vote
1answer
22 views

Get File Object from wp.Uploader

I would like to hook into the wp.Uploader and get the FileList object containing the file to be uploaded. So far I've been able to extend the uploader using the code below, but I can't quite seem to ...
2
votes
1answer
42 views

Different upload path per file type

I want to have two different paths for different files. For example, I have all .zip and image files all in the same locations. What I am wanting to the have images in one path (eg. ...
0
votes
0answers
11 views

Filename and Extension Gone! Media Upload

Since last night when I try and upload an image (say example.jpg) wp removes the filename and file extension so that it shows up as the following in both the uploads directory as well as the metadata ...
2
votes
2answers
146 views

What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?

In the media tab, upload of a valid image file results in display of "HTTP error". Reload of the media tab shows that the image did upload and resize, though. Browser debug tools show that on ...
0
votes
2answers
31 views

Maximum post size?

I use a form to allow users to post tutorials on my website. When there are too many pictures uploaded, it seems like the site reaches a limit and stop uploading them: the post has only the first half ...
1
vote
0answers
23 views

wp.media add context

I have wp.media frame on my plugin to upload doc, docx file. I am filtering the uploaded file. If uploaded other than supported file, it will display this error I am filtering it at ...
2
votes
1answer
30 views

Disable drag and upload in Media Library

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site ...
0
votes
2answers
34 views

Installing new theme on running site

I have a running Wordpress site (3.9.6). Now a new theme should be used and for this theme also some customizations have to be made (content, some WP files like page.php and so on). Additionally, I ...
0
votes
0answers
14 views

Remove uploads no longer in Media Library

I have a wp-content/uploads directory totalling > 6GB in images. This is because I'm programmatically inserting posts which come from an API, and due to the old workflow, there were duplicates. So, ...
0
votes
0answers
37 views

Order number as file name wordpress/woocommerce

I'm using wordpress with woocommerce and I installed one plugin for file uploads, which put into checkout page, when the order was placed, that means I already get the order number. Then upload field ...
0
votes
0answers
24 views

Issues with Wordpress 3.9.6 media libraries on XAMPP

I am having issues with the media library of Wordpress on my local Xampp installation of Wordpress 3.9.6. Uploading files to the media library takes a long time and occassionally fails. However ...
0
votes
0answers
18 views

change upload dir

Currently my images are like www.example.com/wp-content/uploads/2015/06/xxxxxx-yyyy-zzzz-photo-no.jpg I want this like www.example.com/wp-content/uploads/xxxxxx/xxxxxx-yyyy-zzzz-photo-no.jpg or ...
0
votes
0answers
16 views

Local Wordpress install plugin wont upload image

So what I have going on is a plugin I am using (simple ecommerence) is not uploading an image locally (using MAMP). This is what I have tried so far: The plugin uploads all the content (name, ...
0
votes
0answers
37 views

upload custom field in nav menu

I want to add image uploader for each menu element in appearance menu i have created a new walker class Walker_Nav_Menu_Edit_Custom extends Walker_Nav_Menu {} can't paste the walker here beacuse ...
0
votes
1answer
148 views

Upload multiple image with media_handle_upload with multiple file field [duplicate]

I need to add multiple images with image descriptions form wp admin. Admin Form: <label for="image[]">Image</label> <input type="file" name="image[]"/> <label ...
1
vote
1answer
67 views

“Add Media” only shows “Full Size” under Attachment Display Settings

I can't seem to figure out why this dropdown is only showing "Full Size" as the option. I have the default "thumbnail", "medium", and "large" set in Settings, and I've also added a few custom sizes in ...
0
votes
0answers
19 views

Uploaded files URL broken since server change

I moved my wordpress website from my old server to my new. Everything works, except that every uploaded files (PDFs for example) with accents (é,à, and so on) in the file name got their URL broken. So ...
0
votes
0answers
80 views

Add media button does not insert image in the editor

I am using twentyfifteen theme. And all plugins are disabled. When I am trying to insert any image in the content of any page , the add media opens the popup, I choose the image, and click on the ...
0
votes
1answer
34 views

wp_enqueue_media() and upload_mimes problem

Using the following code, I'm trying to allow only certain image types to be upload/selected with the WordPress media API. So I'm using add_filter on upload_mimes to restrict the mime types allowed. ...
0
votes
0answers
30 views

How to display an html page in my wordpress site

I have a contact form seven and database extension plugins installed on my site and I am using it upload some files. I filtered the form data submitted to the database and stored the files on my ...
1
vote
1answer
107 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...