Skip to content

Commit

Permalink
upload, multi-upload added description for files_ext and extra_mime_t…
Browse files Browse the repository at this point in the history
…ypes parameters
  • Loading branch information
llemurya committed Nov 3, 2015
1 parent 9b22734 commit 9c1297b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions options/built-in-option-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,17 @@ Single file upload.
* If set to `false`, the option will allow to upload any file from the media library.
*/
'images_only' => true,
/**
* An array with allowed files extensions what will filter the media library and the upload files.
*/
'files_ext' => array( 'doc', 'pdf','zip' ),
/**
* An array with extra mime types that is not in the default array with mime types from the javascript Plupload library.
* The format is: array( '<mime-type>, <ext1> <ext2> <ext2>' ).
* For example: you set rar format to filter, but the filter ignore it , than you must set
* the array with the next structure array( '.rar, rar' ) and it will solve the problem.
*/
'extra_mime_types' => array( 'audio/x-aiff, aif aiff' )
)
.. rubric:: Custom Events
Expand Down Expand Up @@ -644,6 +655,17 @@ Upload multiple files.
* If set to `false`, the option will allow to upload any file from the media library.
*/
'images_only' => true,
/**
* An array with allowed files extensions what will filter the media library and the upload files.
*/
'files_ext' => array( 'doc', 'pdf','zip' ),
/**
* An array with extra mime types that is not in the default array with mime types from the javascript Plupload library.
* The format is: array( '<mime-type>, <ext1> <ext2> <ext2>' ).
* For example: you set rar format to filter, but the filter ignore it , than you must set
* the array with the next structure array( '.rar, rar' ) and it will solve the problem.
*/
'extra_mime_types' => array( 'audio/x-aiff, aif aiff' )
)
.. rubric:: Custom Events
Expand Down

0 comments on commit 9c1297b

Please sign in to comment.