Closed huntonas closed 9 years ago
Should be image/*
hate it when that happens
I know this is closed, but I'm getting the same error when trying to upload InDesign files even though the collection filter should be accepting them. I have noticed when I look at the log for the file, the type
property is empty, but I've seen that the type SHOULD be application/x-indesign
. My code:
HighResFiles = new FS.Collection("highResFiles", {
stores: [highResStore, highResThumbStore],
filter: {
maxSize: 524288000, //500 MB in bytes
allow: {
contentTypes: [
'image/*', 'application/pdf', 'application/octet-stream', 'application/postscript', 'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/illustrator',
'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/x-indesign'
],
extensions: ['png', 'gif', 'jpg', 'jpeg', 'tif', 'tiff', 'bmp', 'eps', 'svg', 'ps', 'pdf', 'psd', 'doc', 'docx', 'xls', 'xlsx', 'ai', 'ppt', 'pptx', 'indd', 'idml']
}
}
});
I have continued to get this error when trying to upload an image. Here is the code for the Images collection
I have tried uploading png's and jpg's, but I keep getting the filter error. Not sure if there is somewhere else that I need to define the filters. This code is in /lib/images.js
The template code: