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?