I’m trying to make a script that uploads a file to a specific folder in the wordpress installation.
Basically I want to upload to /uploads. However, in order to do this I need to know the server path for the WordPress installation.
How can I get this?
2 Answers
Use wp_upload_dir() for path to uploads, and use get_bloginfo() to get paths to the WP location