summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/db.json8
-rw-r--r--examples/index.js10
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 },
}
},