Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 284)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 285)
@@ -72,4 +72,6 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/274">#274</a>] The PHP quick upload
 			still tried to use the Upercase types instead of lowercase.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/416">#416</a>] The PHP quick upload
+			didn't check for the existence of the folder before saving.</li>
 	</ul>
 	<h3>
Index: /FCKeditor/trunk/editor/filemanager/upload/php/upload.php
===================================================================
--- /FCKeditor/trunk/editor/filemanager/upload/php/upload.php	(revision 284)
+++ /FCKeditor/trunk/editor/filemanager/upload/php/upload.php	(revision 285)
@@ -89,4 +89,10 @@
 	$sServerDir .= strtolower($sType) . '/' ;
 
+//check for the directory before uploading the file
+if(!is_dir($sServerDir))
+{
+    mkdir($sServerDir);
+} 
+
 while ( true )
 {
