-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig option.txt
32 lines (31 loc) · 1.14 KB
/
config option.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
https://github.com/aguidrevitch/jquery-file-upload-middleware
options = {
tmpDir: __dirname + '/tmp', // tmp dir to upload files to
uploadDir: __dirname + '/public/files', // actual location of the file
uploadUrl: '/files/', // end point for delete route
maxPostSize: 11000000000, // 11 GB
minFileSize: 1,
maxFileSize: 10000000000, // 10 GB
acceptFileTypes: /.+/i,
inlineFileTypes: /\.(gif|jpe?g|png)/i,
imageTypes: /\.(gif|jpe?g|png)/i,
copyImgAsThumb : true, // required
imageVersions :{
maxWidth : 200,
maxHeight : 200
},
accessControl: {
allowOrigin: '*',
allowMethods: 'OPTIONS, HEAD, GET, POST, PUT, DELETE',
allowHeaders: 'Content-Type, Content-Range, Content-Disposition'
},
storage : {
type : 'local', // local or aws
aws : {
accessKeyId : 'xxxxxxxxxxxxxxxxx', // required if aws
secretAccessKey : 'xxxxxxxxxxxxxxxxxxxxxxx', // required if aws
region : 'us-west-2', //make sure you know the region, else leave this option out
bucketName : 'xxxxxxxxx' // required if aws
}
}
};