Explorar el Código

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

Zachary Kotlarek hace 9 años
padre
commit
a63f30330c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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