diff --git a/ext/upload/main.php b/ext/upload/main.php
index 08a0f03a..1de99bbd 100644
--- a/ext/upload/main.php
+++ b/ext/upload/main.php
@@ -6,7 +6,7 @@ class Upload extends Extension {
 	public function receive_event($event) {
 		if(is_null($this->theme)) $this->theme = get_theme_object("upload", "UploadTheme");
 
-		$is_full = (disk_free_space("./images/") < 100*1024*1024);
+		$is_full = (disk_free_space(realpath("./images/")) < 100*1024*1024);
 		
 		if(is_a($event, 'InitExtEvent')) {
 			global $config;