simov/express-admin — pull request #11 by simov (2013-11-29 13:27:28+00:00)
Title: File Upload

- Any column with control type `text` set by default can have its control type changed to `file` like this
```js
"control": {
"file": true
}
```
You should make sure that your column have enough allowed characters to save the entire file name (for example `varchar(255)` or something bigger)

- Currently the files are uploaded into the `public\uploads` folder (you should create it first). There will be an option for specifying the upload folder location

- The files are uploaded with their exact name except when a file with the same name is already uploaded to the server. In this case a suffix is added to the end of the file (for example `cat.jpg` becomes `cat-1.jpg`, `cat-2.jpg` and so on)

- When a record is deleted the corresponding file are left untouched on the server