diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:10:00 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:23:06 -0400 |
| commit | 6c09824946214db696beb59e34ce2e448d504abc (patch) | |
| tree | f10e10430930bacd28414fe26d2c20d155ea2959 /examples | |
| parent | 62ce072b3c32bacf3d290b44bf1b9db8154d30a7 (diff) | |
better max file size stuff
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/db.json | 8 | ||||
| -rw-r--r-- | examples/index.js | 10 |
2 files changed, 11 insertions, 7 deletions
diff --git a/examples/db.json b/examples/db.json index 3650355..da7c19a 100644 --- a/examples/db.json +++ b/examples/db.json @@ -167,7 +167,13 @@ "title": "Blue", "__index": 2, "dateCreated": "Tue, 05 Apr 2016 15:17:54 GMT", - "media": [] + "media": [ + { + "uri": "https://ltho.s3.amazonaws.com/okcms-example/f2775199-d700-4b1f-951f-88fda599014e.png", + "caption": "", + "type": "image" + } + ] }, { "id": "green", diff --git a/examples/index.js b/examples/index.js index 147750e..57bce4b 100644 --- a/examples/index.js +++ b/examples/index.js @@ -41,12 +41,10 @@ var app = okcms.createApp({ secret: process.env.S3_SECRET, bucket: process.env.S3_BUCKET, dirname: "okcms-example", - allowVideoUploads: true, - allowAudioUploads: true, - preserveFilenames: true, - maxsize: 200, - maxsizeVideo: 150000000, - maxsizeAudio: 150000000, + // TODO: maxbytes stuff isn't working, need to change underlying module + image: { preserveFilename: false, maxbytes: 20000 }, + video: { preserveFilename: true, maxbytes: 0 }, + audio: { preserveFilename: true, maxbytes: 150000000 }, } }, |
