Support » Plugins » how to get remaining free space for upload folder

  • Hi all! 😉

    I’m trying to port a WordPress MU plugin to WordPress (single user).

    That plugin is used to see in the dashboard the remaining space in the upload folder, so you can know all the time if you have enough free space for more files.

    If I try to use this plugin in WP I get this error:

    Fatal error: Call to undefined function get_site_option() in…

    Because the plugin uses get_site_option to get the space remaining throught a funtion argument that exist in WPMU.

    So my question is…

    Is there any function in WP to get the free space remaining in the blog/hosting??? (I have searched in the develop docs but cant find anything).

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Boy I hope you give proper credit to teh author of that plugin. 🙂

    The issue I see with doing it for a normal install is that the space remaining quanity isn’t known to wordpress. It’s an issue with the hosting software and, considing there are so many different OSes out there, I don’t see a single method of pulling the data out.

    Hehehe… sure! in fact if there’s not any function to obtain that in WP, the credit will remain intact because in that case I cant do anything 🙁

    Thanks for your reply Dr. 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to get remaining free space for upload folder’ is closed to new replies.