How to check the WordPress file upload permissions?