rilwis/meta-box — Issue #39: [Feature Request] Number of file
Author: rilwis
Created: 2011-12-22 05:36:22+00:00
State: open

I’m using the ‘file’ type to upload a single file. However the admin area enables the user to upload many files instead. Could you perhaps add a different type for multiple files (e.g. ‘files’) or something like how many files you would like the user to upload?

Something like:

```php
‘type’ => ‘file’ // Field type: file upload
‘number_of_files’ => 1 // Number of files a user can upload, use ’0′ for infinite.
```

The reason is that enabling multiple file uploads could lead to expectations in the front-end and possible problems with retrieving the single (first file) in the list. Also I prefer to have my end-user get as clean an interface as possible.

[link to comment](http://www.deluxeblogtips.com/meta-box-script-for-wordpress#comment-4525)