瀏覽代碼

Tell me when things do not work (may need filtering to avoid whininess)

Zachary Kotlarek 9 年之前
父節點
當前提交
a63f30330c
共有 1 個文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      upload.php

+ 4 - 0
upload.php

@@ -75,6 +75,8 @@ while ($row = $folders->fetch()) {
 	}
 	if (folderID($session, $row['path']) || mkFolder($session, $row['path'])) {
 		$update->execute(array(':base' => $row['base'], ':path' => $row['path']));
+	} else {
+		echo 'Unable to create folder: ' . $row['path'] . "\n";
 	}
 }
 
@@ -106,6 +108,8 @@ while ($row = $files->fetch()) {
 	if ($result !== false && $result == $stat['size']) {
 		$uploaded += $result;
 		$update->execute(array(':base' => $row['base'], ':path' => $row['path']));
+	} else {
+		echo 'Unable to upload file: ' . $row['path'] . "\n";
 	}
 
 	# Bail if we exceed the byte limit