Hi,
I can't seem to get upload adaptors to work properly anymore since I updated to beta 15. I have the following mimetypes registered:
(image\/(gif|jpeg|png)) -> local -> Default image download template
(application\/(x-(7z|rar|zip)-compressed|zip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf)) -> local -> Default file download template
But I'm only getting an error message that the type is not allowed when I'm trying to upload a pdf, specifically Error 422 (Uploading files of this type is not allowed).
Uploading images (I just tried jpg) works, but I seem to only get the image preview handler. When I change the upload handler to the file download or URL template, it has no effect.
Also, when I'm adding a handler which should match everything (.*), I'm also getting the same error message.
Are my mimetypes wrong? Is there anything else I'm not seeing? Is this a known bug?
The logs in storage/logs don't show any hints to what's happening. I ran the migrations after upgrading and cleared the cache several times.
Any help would be appreciated. Thanks.
Some details about my installation (flarum info):
Flarum core 0.1.0-beta.15
PHP version: 7.4.12
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, gmp, SPL, iconv, session, json, mbstring, pcntl, standard, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, mysqlnd, imagick, curl, gd, mysqli, PDO, pdo_mysql, xsl, sqlite3, intl, sodium, ldap, tidy, pdo_pgsql, pdo_sqlite, igbinary, redis, ionCube Loader, Zend OPcache
+----------------------------+----------------+--------+
| Flarum Extensions | | |
+----------------------------+----------------+--------+
| ID | Version | Commit |
+----------------------------+----------------+--------+
| flarum-bbcode | v0.1.0-beta.15 | |
| flarum-emoji | v0.1.0-beta.15 | |
| flarum-flags | v0.1.0-beta.15 | |
| flarum-likes | v0.1.0-beta.15 | |
| flarum-markdown | v0.1.0-beta.15 | |
| flarum-mentions | v0.1.0-beta.15 | |
| flarum-statistics | v0.1.0-beta.15 | |
| flarum-sticky | v0.1.0-beta.15 | |
| flarum-subscriptions | v0.1.0-beta.15 | |
| flarum-suspend | v0.1.0-beta.15 | |
| flarum-tags | v0.1.0-beta.15 | |
| fof-doorman | 0.3.0 | |
| kakifrucht-de | 0.13.1 | |
| flarum-lang-english | v0.1.0-beta.15 | |
| fof-terms | 0.6.1 | |
| fof-pages | 0.6.0 | |
| flarum-pusher | v0.1.0-beta.15 | |
| fof-polls | 0.3.2 | |
| fof-user-bio | 0.4.1 | |
| fof-user-directory | 0.5.0 | |
| fof-upload | 0.12.1 | |
| fof-profile-image-crop | 0.2.1 | |
| flarum-lock | v0.1.0-beta.15 | |
| kvothe-pipetables | 1.0.9 | |
| tpokorra-post-notification | 0.3.12-beta.15 | |
+----------------------------+----------------+--------+