The Wordpress upload directory. [Read more about `wp_upload_dir()` here](http://codex.wordpress.org/Function_Reference/wp_upload_dir).

learn more… | top users | synonyms

0
votes
1answer
10 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
31 views

wp_handle_upload() - how to upload to a custom subdirectory within uploads

wp_handle_upload() works for me, but uploads files where it wants (uploads/year/month). Question: Is there any way to tell it to upload files to a custom dir (uploads/mycustomdir)? Or is there some ...
0
votes
0answers
23 views

Missing Images in Uploads Directory (Server Only)

I recently moved a WP install from our dev server to the clients server. Everything went fine, however, the site is missing a large amount of images. The dev site has the images in the Wordpress ...
0
votes
1answer
29 views

Primary site file uploads failing, subdirectory subsites upload fine

Pardon the cross-posting (also up at Wordpress.org): We're tearing our hair out here. We have multisite configuration working, subdirectory style. File uploads work to the subsites, but the primary ...
0
votes
1answer
38 views

Proper way to change the path of uploads folder for existing WordPress site

Until now I have used default WordPress directory structure, however since I started using GIT, I plan to setup WordPress as a submodule and also change the paths of upload folder. Since the path for ...
0
votes
0answers
22 views

How to move images from /uploads to the /uploads/Year/Month structure? [duplicate]

A site has more than 5000 images (without the automatically from WP generated ones) in the /uploads folder. The site is very slow, I want to move the images into the /uploads/year/month structure, and ...
0
votes
0answers
27 views

Wordpress CPT Upload Audio Files to wp-content/upload/audio

I'm working on a custom post type for my blog that will read files in the directory specified and create a post for that file. I also want to use the wp upload handler in my custom post type but I ...
0
votes
2answers
44 views

Undoing define( 'UPLOADS', ''.'files' ); to repoint to “wp-content/uploads” folder

Is it possible that by setting the “wp-content/uploads” to use a different folder by using define( 'UPLOADS', ''.'files' ); I have effectively changed all the paths on a permanent basis and if that is ...
0
votes
2answers
40 views

Upload Directory question

Happy New year! So I am having a big of a problem, currently one of our php files that we bought points to the default uploads directory for wordpress and we would like to change this to our own ...
0
votes
0answers
20 views

How to have one post with two seperate media libraries which upload to and load from their repective directories?

I am developing a project management program for my engineering company. Clients and jobs are custom post types. I have a custom uploader that I have created using wordpress's native uploader to ...
1
vote
1answer
58 views

upload files dynamically to user folders

we have several users on our site. we have created a separate folder for each user. Admin have a select box to select users on the site. we have to give ability to upload files to that particular user ...
3
votes
4answers
290 views

Each custom image size in custom upload directory?

I want to upload my custom image sizes in custom folders. The folder should have the name of the selected width. For example: If I add these custom sizes... add_image_size('custom-1', 300, 9999); ...
0
votes
1answer
345 views

using wp_insert_attachment() results in guids with file names different to the same file when uploaded via media page in admin

I'm trying to make a plugin that as part of its task uploads csv files to the wordpress install. Deciding to integrate as closely as possible using wordpress functions wherever possible I am saving ...
0
votes
1answer
85 views

Separate Uploads folder on other server

Is there a way to separate wp-content/uploads on different server ? I mean if i have two servers. Serv1 and Serv2 . On Serv1 is the wordpress installation and on Serv2 stays only the uploads folder. I ...
0
votes
2answers
152 views

Inserting image into post content - Front End

This is the php I have for a form which creates a post with thumbnail. I want to know how to add the uploaded image to the post content as well. Tried a few things, but they didn't work. ...
0
votes
0answers
17 views

Write uploads on second server

Please tell me is there a way to make wordpress to write uploaded files to uploads and also to second dir? I mean if upload picture for example wordpress write it in uploads dir and also to other dir ...
0
votes
0answers
173 views

create wordpress media automatic uploads folder using custom plugin

I created a plugin, this plugin is used for uploading images and creating gallery with these images.Everything worked fine and I dilivered plugin to client. But now everything went wrong.He just ...
1
vote
2answers
50 views

Wordpress uploads folder path. how it is decided?

I know that if we are adding a new media in the month of August, it will be uploaded to /08 folder under /uploads. But here i am facing a new issue. I wrote a page in the month of June(6th month). ...
0
votes
1answer
207 views

Media Library not showing images when adding to Posts (but retrieving image info via ajax)

When uploading an image to a post/page, the media library doesn't display any images (when there are some), and then 'fails' when you try and upload (although the image is actually uploaded). I've ...
0
votes
0answers
134 views

Symbolic link for uploads in wordpress

Hi i am a new bie in wordpress. i use load balancer for my sites. So the request can be processed by any of the 4 servers. so i moved all contents from /wp-content/uploads to the centralised server ...
0
votes
0answers
60 views

Get Image Directory for Multisite & Single Site

I'm following the code from this example to set a placeholder image for WooCommerce. /* * goes in theme functions.php or a custom plugin. Replace the image filename/path with your own :) * **/ ...
0
votes
0answers
57 views

Import images into Media Library - from server location /wp-content/themes/customtheme/images/

Is there any Code to import all images found in a folder and its sub-folder and import all images into media library ? for example - i want add my theme sub-folder's images imported into wordpress ...
1
vote
3answers
2k views

Cannot upload anything via wordpress

I've just recently installed a local installation of Wordpress 3.5.2 on my laptop, running ubuntu 12.10. I installed following the guide from here. So far, everything else is working, except I cannot ...
1
vote
1answer
87 views

Force Uploads Use Yearmonth to off (0) for all existing sites in Multisites

In WordPress Multisite, by default the site option Uploads Use Yearmonth Folders is on (set to 1). Is it possible to force this value for all existing sites in the Network? Perhaps a hook? I know ...
0
votes
0answers
56 views

Limit files uploaded per folder

I upload over thousands of images everyday and I want to limit the number of files that can be stored in a folder cause it's not good to have like 5000 files in a folder because it increases the load ...
3
votes
1answer
371 views

Changing upload directory for plugin uploads only

I've spent a lot of time reading the other threads on this question, but I just cannot get my code to function properly. I'm building a plugin, and I've set up an upload form on my custom admin page, ...
2
votes
3answers
1k views

How to set featured image to custom post from outside programmatically

I am trying to fetch and insert images outside the wordpress environment to a custom post via PHP. How to move/upload that image to wordpress upload directory year date folder format just like ...
0
votes
0answers
152 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
43 views

Change default upload location on mulitsite

Ive set up a wordpress multisite, but would like to change the default location it uploads media to a remote server, but keeping the same folder structure, as in each blog has a folder. Is this ...
0
votes
1answer
39 views

Are uploads directories created on a schedule?

I have a cron job that alerts me to modified files on a couple of WordPress installs. Two of them alerted me tonight to the creation of apparently empty folders like ...
1
vote
0answers
116 views

custom upload directory only for plugin uploads

i'm trying to add an upload_dir filter only for plugin-uploads. does anybody know why the code below doesn't work, and what could work instead? thanks in advance! $upload_dir = 'publications'; ...
3
votes
1answer
831 views

Set custom upload path for custom post type only?

I have a custom post type of 'clients' and would like all images/files uploaded through the admin for these posts to go to a specific directory on my server, but everything else to stay as normal. Is ...
1
vote
0answers
186 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
2answers
165 views

Using Add from Server to upload by post ID

I am using Add From Server plugin http://wordpress.org/extend/plugins/add-from-server/ basically it imports/upload image from the server. Currently the plugin copies the images into month/year folder ...
2
votes
3answers
932 views

Using wp-uploads instead of wp-content/uploads

What is the difference between the wp-uploads directory and the wp-content/uploads directory? I am running Ubuntu Server 12.04 and recently installed WordPress using apt-get, but there have been a ...
1
vote
1answer
315 views

Post type specific upload folder in 3.5

In 3.4 I used the following function to change image upload folder by post type. Different upload directory based on post type in a theme Now it doesn't work anymore in 3.5. Do you have any idea how ...
0
votes
1answer
546 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
41 views

Is it possible to set the upload location to a different server?

Our university has given our student society a 1GB portion of storage to be used for our website. We're low on their bandwidth priority however so it did not work speedily with Wordpress. I managed ...
1
vote
3answers
4k views

How to change the file upload directory on version 3.5?

The option to change the upload folder for images is gone on version 3.5, any way to make it visible again or a workaround ? From this core ticket: Changing the upload_path and upload_url_path ...
0
votes
1answer
404 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 ...
2
votes
2answers
506 views

Different upload directory based on post type in a theme

I have a lot of uploaded image files and image sizes. So it would be better to organize media files into folders based on post type. I have just read this tutorial, but as I can see it works with ...
1
vote
1answer
363 views

WP doesn't remove uploads from folder when removed from “Media Library”?

I'm wondering why WordPress doesn't remove uploads from folder when removed from "Media Library"? I set limit to 5mb on WPMU but even if user removes everything from "Media Library" he can't upload ...
3
votes
1answer
564 views

Organize uploads by year, month and day

As of now my uploaded files are organized by year and month. But I would like to organize them by year, month and day. I mean like this 2012/10/30/image goes here PS: There is a plugin available to ...
0
votes
1answer
1k views

Multisite missing tmp folder error while uploading

I have a multisite setup on a server that requires me to upload to a stage server then send a "publishnow.txt" file over to send everything to the production server. This is a state agency hence the ...
3
votes
2answers
3k views

Wordpress Uploads Folder can't be Written to

This one has me stumped I'm sure it is something really small that I am overlooking but I think I've been looking at it too long to see what the problem is. Wordpress is telling me: "Upload ...
2
votes
1answer
61 views

Images in upload folder with hexadecimal names

I'm using Wordpress 3.4.1 with the Suffusion theme 4.3.0. I've noticed that there are a large number of images with hexadecimal names, like 54f96e1d5f478186f66bde9d6aeda625.jpeg. I'm wondering how ...
1
vote
2answers
42 views

Switched hosts to one with cPanel. To transfer my blog should I do the WP install or just be uploading my old WP directory & database?

I've never transferred a website before let alone a database. I believe I backed up the database to an .sql file and I haven't deactivated the old host yet in case I need to do it again. My main ...
0
votes
2answers
519 views

Moving existing media items to new upload path structure not updating full URL path

Have been developing a site and noticed that all of the media files were being saved in the default WP year/month/day rule in the wp-content/uploads directory. I decided to change this to assets and ...
0
votes
1answer
229 views

uploaded images not going to /uploads folder

having a huge problem with a site. i updated the theme to use post thumbnails (that's how old it is) and then when trying to upload an image to use as featured thumbnail: the images process/crunch ...
0
votes
1answer
161 views

Image not showing up in media loader success area - followup

This is part two to this question: Post Specific Uploader I am using an upload filter to put files in a location based on post_id. Now when the file uploads, the URL path in the meta is wrong and the ...