Oh, that works fine! Now I can upload epub files… although, now I have another issue. The upload option correctly limits by mime type. But, when clicking on select to select one from my already uploaded files, it let’s me select any file.
I suppose this is ripe for a GitHub issue? Or am I missing something?
You can limit what you can select in a field with a query, either by template (the template you assign to these epub files) or by file type or extension.
I find surprising that template is not working though. It’s like it doesn’t know the type of template has each file… where is this info stored? In the .txt file next to the file?
I don’t know what you mean. I’m using uploads: epub, which references to the epub file blueprint. Isn’t that enough to tell it that the uploaded file is of that type?
For some reason that doesn’t work for me. I have a couple of upload fields, so maybe that’s why it isn’t working??
I was imagining that the “template” type information would be attached next to the file .txt metadata. Or maybe it would be part of the file name… I don’t see neither of those.
The template is written in the file metadata file, exactly. Note that the template is only assigned at upload, not when you add files through the file system or added the uploads: epub property later.