The wp-handle-upload tag has no wiki summary.
2
votes
1answer
375 views
How to change upload directory in wp_handle_upload
I am trying to work out how to use the wp_handle_upload function for a custom plugin so that i can specify my own own upload directory. The code so far takes a file from my plugin settings page and ...
0
votes
1answer
16 views
Specified file failed upload test. Error When Uploading Image From Front-end
This is my code:
$file_return = wp_handle_upload($_FILES['my-photo'], array('test_form' => FALSE));
if(isset($file_return['error']) || isset($file_return['upload_error_handler'])) {
echo "And ...
0
votes
1answer
18 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
1answer
170 views
Upload an image at frontend > Create direction and/or rename filename possible?
I have a form for a non-profit-club, that publish posts + up to 20 images. The image-path will be writen in a custom-field. Images are uploaded. Ok, now i want to rename the pictures or (much better) ...
0
votes
1answer
228 views
Organizing uploaded media with wp_insert_post() and wp_handle_upload according to time parameter
I'm retroactively creating a post with wp_insert_post() and attaching a featuring image to it. I need the image to go into the folder that corresponds to the post's publishing date.
I'm using time ...
1
vote
0answers
51 views
Upload video in custom folder
I am trying to find a system to upload some kind of media in a custom folder.
I want to keep all uploads in default wordpress folder and create a custom folder just for videos.
So i would have the ...
0
votes
0answers
52 views
Change upload directory and url
I am developing a plugin and I changed the upload directory of the v.3.5 media uploader to this: \wp-content\plugins\deixto\cle.
I used the following function and filter:
function ...
0
votes
0answers
38 views
Resize and crop image during upload
How to add more function to resize and crop image during upload?
I want to creat a avatar upload form on author profile.
And size of avatar: 150x150
If file size have width > height => resize by ...