Commits

christiansalazar committed 0e06b51

README update

  • Participants
  • Parent commits 57c91fe

Comments (0)

Files changed (1)

 			'onCompleted'=>'function(id,filename,jsoninfo){  }',
 			'onCancelled'=>'function(id,filename){ alert("cancelled"); }',
 			'onMessage'=>'function(m){ alert(m); }',
-			'allowedExtensions'=>array('jpeg','jpg','gif','png'),
-			'sizeLimit'=>2000000,
+			'allowedExtensions'=>array('jpeg','jpg','gif','png'), // server-side mime-type validated
+			'sizeLimit'=>2000000, // limit in server-side and in client-side
 			'uploadDir' => 'assets/', // coco will @mkdir it
 			// this arguments are used to send a notification
 			// on a specific class when a new file is uploaded,
 			'receptorClassName'=>'application.models.MyModel',
 			'methodName'=>'onFileUploaded',
 			'userdata'=>$model->primaryKey,
+			// controls how many files must be uploaded
+			'maxUploads'=>3, // defaults to -1 (unlimited)
+    		'maxUploadsReachMessage'=>'No more files allowed', // if empty, no message is shown
+			// controls how many files the can select (not upload, for uploads see also: maxUploads)
+			'multipleFileSelection'=>true, // true or false, defaults: true
 		));
 	?>
 ~~~