FriendsOfFlarum upload, the intelligent file attachment extension
- Edited
Tagged 0.5.4 which fixes some issues with AWS S3, make sure to read the new wiki page set up for that adapter. If you encounter any issues, please report them on github. It's easier to keep track of them via that medium.
Tagged 0.5.6 fixing uploads with local adapter on Windows file systems.
Output after uploading image:
$image-344607c4-ee16-498a-a74f-801ddde8f86c
luceos how to show full image?
I uploaded image, but... like this ... https://discuss.hyn.me/assets/files/2017-04-19/1492639509-0-screen-shot-2017-04-20-at-001000.png
liumangwu For now I believe if you want to show full image, you'll have to edit post and link to the uploaded file using the image Markup until the ext can so automatically or with an option. I would guess thats probably on the to do list, as it is handy for photos and videos.
SierraKiloGulf thank you!
Tagged 0.5.7 which solves an important vulnerability I will not share openly. Please update as soon as possible!
gosh Updated and almost got an heart attack as my forum didn't reload properly.
Then remembered, that I forgot something.
php flarum migrate
php flarum cache:clear
?
- Edited
Watermarking images doesn't seem to be working on images uploaded from my mobile devices.
I have also noticed that after uploading a file, it minimizes the post on all my android devices before posting, which can become quite annoying
Edit: Scratch that about watermarks. Turns out I was just uploading 12MP images and it was really hard to see the watermark lol. Other issue still stands though, and really sucks if you are trying to upload more than one image at a time.
Also @luceos is there a way to hide the file name on the preview card uploaded? Or I guess as a feature request, perhaps allow users to hide it, or allow members to actually name the file, so at least it correlates to what the image is instead of seeing tmp-4523-img-20170517-030306-1153793179.jpeg across 1/4 of the image when on mobile devices.
This feature would make more sense if included with a user gallery (or would at least make it easier for members to kind of find their uploads), but I have given it some thought on how one would name the folders, and it just seems like a nightmare. Perhaps each user could get their own folder in assets/files, and then have the dated folder system it currently has in place? For example, one of my clients run a gardening forum, and the users quite often will link photos of plant diagnosis in help threads. It would be nice to be able to go into ones gallery and just link back to a photo instead of uploading everytime. Before we made the switch we used to have one, and the members really seem to miss such a feature.
It may help reduce clutter in the long run too, after the forum has been running for three or four years and there are thousands of folders to sift through.
SierraKiloGulf the latest upload already tracks which user uploaded what files and as long as you use the php proxy it keeps track of who downloaded files as well. Creating a user gallery in the future in that regard, is very much possible. The reason for tracking this information is the ability to delete files, which still needs to be implemented ?
luceos
SO judging by the patch notes I totally missed, its enabled by default?
Would that be the Disable hotlink protection button? I assume disabling that button would turn that off? Not that I want to, just want to know for reference. This is great news!
- Edited
SierraKiloGulf I've documented it here and the heading in the settings is called "Disable logging downloads". Hotlink protected prevents downloads from other sources than your forum, if the php proxy (the php url) is used.
luceos Upload now is able to show the downloads, this functionality is extensible. Downloads are now proxied through php (read flarum) allowing you to track downloads (dashboard/stats soon), but also to protect your downloads from being hotlinked outside of your forum. Another security measure is the ability to configure a download permission (next to the upload permission), unlocking a wide range of scenarios I imagine.
Please note the previews are still very much work in progress. For one, it still shows the image url, which negates the concepts of the above protection. I'll patch this up in a coming minor release.
Ahhhh, I guess I should open my eyes. Pretty much everything I needed to know was right here. You're already on top of it haha. I also just experimented with renaming files before uploading, and it actually works exactly how I wanted it to lol. Maybe I should get some sleep :p
Also, might be a silly question, but is there even an html url? All I have in my root is php anyways