Source

coco / CocoWidget.php

Diff from to

CocoWidget.php

 				return;
 			}
 
+			// ensure directory
+			$this->uploadDir = rtrim($this->uploadDir,'/').'/';
+			@mkdir($this->uploadDir);
+
 			$result = $uploader->handleUpload($this->uploadDir);
 			if(isset($result['success'])){
 				if($result['success']==true){