I don't know if I'm just an idiot, but I really can't figure out this MIMETYPES stuff. Sorry!
Can someone spell out exactly how to approve pdf, doc, docx, pptx, ppt, m4a, mp3, jpg, and png?
I don't know if I'm just an idiot, but I really can't figure out this MIMETYPES stuff. Sorry!
Can someone spell out exactly how to approve pdf, doc, docx, pptx, ppt, m4a, mp3, jpg, and png?
this is for all types;
(video\/(3gpp|mp4|mpeg|quicktime|webm))|(audio\/(aiff|midi|mpeg|mp4))|(image\/(gif|jpeg|png))|(application\/(x-(7z|rar|zip)-compressed|zip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf))
this is mine;
(image\/(gif|jpeg|jpg))
Here's mine for docs and archives:
^application\/(x-(7z|rar|zip)-compressed|zip|gzip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf|msword|vnd.openxmlformats-officedocument.wordprocessingml.document|vnd.ms-excel|vnd.openxmlformats-officedocument.spreadsheetml.sheet|vnd.ms-powerpoint|vnd.openxmlformats-officedocument.presentationml.presentation)
Audio files:
^audio\/(flac|x-flac|mp3|x-mp3|mpg|mpeg|mpeg3|x-mpeg|x-mpeg3|x-mpg|x-mp4a|x-mpegaudio|mp4|vnd.wave|wav|wave|x-wav|x-pn-wav|ogg|x-ogg|x-ogg-flac)
MIDI files:
^audio\/(mid|midi|x-mid|x-midi|sp-midi)
Images:
^image\/.*
Text files:
^text\/(plain|pdf|json|rtf|xml)
I have separate templates for those but you can merge them into one.
Hello!
Some question and tips about this good extension.
Testing only with Imgur image storage ID.
1- If go with "BBcode template" all the images upload go with URL LINK. If any one click in the image redirect to imgur.com webpage. If upload with "Mardown image template" no have any url link. Not have possibility to delete the URL link in BBcode ? or maybe optional to select the link?
2- About the links to open the image in full- page view that other similar extension "imgur Upload" have and option in the admin panel to select or no the option to link the imagen to full page, as you prefer. In this case, if you select "with link" the image not open in imgur gallery as view in FoF Upload, open directly in the image url link with *jpg final address and not view any for imgur. The background is completly black. In think is a good tip to implement if it´s possible.
3- I testing other extension: "Imgur Upload by Matteo Contrini" and view that have a good point that not view implemented in FoF upload. In Android mobile devices, if working only with "upload button" in Fof upload when click in the button I have some options: Take a photo with the camera or explore the mobile folders to search the photo. In the Matteo Contrini extensión when click in the upload button go directly to mobile gallery to select the photo you need to upload. I think this option is better when working via mobile device, directly to the gallery.
4- Create and option in admin panel to hide Markdown image button to no duplicate the same action with different icons.
Hello!
Does someone know how files can be deleted after being uploaded through the FoF Upload extension?
It looks like the files are just hidden but not deleted because they remain in the /assets/files folder.
kenji-fire it has to be done manually. There is currently no built-in feature for it.
What could be the reason I don't have any settings in this extension?
i cant enable this. clicking the enable, it toggled back to disabled. any idea whats wrong and where i can check for errors?
Experts, please make an imagekit.io upload adapter. They offer free 20GB space, 20GB bandwidth, and files are served from CDN. You can choose your nearest data center to host files.
Enough for many forums.
https://docs.imagekit.io/getting-started/quickstart-guides/php
------------ storage/logs
or enable debug
in your config.php
.
the error is (with stuff changed to "X" to obfuscate )
flarum.ERROR: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier name 'xxxxxxpreffof_upload_files_actor_id_hide_from_media_manager_index' is too long in C:\xxxxx\xxxxxx\xxxxxxxxxxx\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:117
Stack trace:
maybe related to this length limits? https://dev.mysql.com/doc/refman/8.0/en/identifier-length.html
as "xxxxxxpreffof_upload_files_actor_id_hide_from_media_manager_index" is 65 characters while the limit is 64.
Only way to fix this is by nuking the flarum and installing it again with shorter database name?
------------ your database table prefix is too long.
Flarum (or more specifically, the Laravel schema builder) automatically generates index names based on table name + column name, so the longer your table prefix is, the more likely errors like this will occur. This is not specific to this extension, this extension just happens to have long table and column names already which bring index names closer to the limit.
You will likely need to rollback the migrations before trying again ("Uninstall" on extension page after disabling) to attempt the migration again. Or restore from backup before trying again.
If you want to keep your table prefix unchanged, you will have to manually fix/apply the migrations to the database and then mark the migration as applied.
I recommend not using a table prefix longer than 4 characters. Best solution is to use a dedicated database and no prefix.
The length of the database name doesn't matter, only the table prefix.
clarkwinkelmann Is the delete feature something that is planned? I mean currently the delete button from "My media" has no utility beyond the visual and ending up with a bunch of unused files on the disk/bucket.
clarkwinkelmann confirmed. a shorter prefix fixed the issue. thanks
There is any ETA for adding function to remove files by users or admins?
There is option to "hide" message in User profile -> My media , but message clearly state:
Are you sure you want to hide "image.png"? Hiding a file will only remove it from your media manager and will not affect existing posts.
It would be great if users can remove some of attachments which they don't want to share with others anymore.
Also Admin tool to search for "abandoned" attachments (for example: created and attached for removed posts or discussion) would be wonderful.
Wadera There is any ETA for adding function to remove files by users or admins?
Nope. Any extension in the Friends of Flarum namespace is not under feature development unless commissioned or out of private interest, I am sorry. I wish we all had more time to invest in all these great extensions.
OK, that's sad news, but fully understood.
Support for CatBox Moe?
See API on https://catbox.moe/tools.php
Is there a blacklist somewhere on the backend for this plugin that I can edit/patch? I have tried to allow for upload/attachment of cpp files from the admin page with,
^text\/(cpp|h|js|json|m|pdf|plain|py|rtf|xml)
but still get,
Uploading files of this type is not allowed.