FriendsOfFlarum upload, the intelligent file attachment extension
- Edited
Hey, im not sure if i miss some details but i dont get it to work like you descriped - when i upload an image I get a download link and a tiny preview ( no markdown img link or something like that ).
( didnt read all of the 300 commects but most of them )
Edit : we use the forum as internal ( local ) page, so we cant use imgur or any other internet source
Config :
I cant upload anything.
When i Enable Debug, give me this Failure.
POST http://smartgames.esy.es/api/flagrow/upload
<br />
<b>Fatal error</b>: Uncaught Error: Class 'Ramsey\Uuid\Uuid' not found in /home/u825870850/public_html/vendor/flagrow/upload/src/Repositories/FileRepository.php:52
Stack trace:
#0 /home/u825870850/public_html/vendor/flagrow/upload/src/Commands/UploadHandler.php(94): Flagrow\Upload\Repositories\FileRepository->createFileFromUpload(Object(Symfony\Component\HttpFoundation\File\UploadedFile), Object(Flarum\Core\User))
#1 [internal function]: Flagrow\Upload\Commands\UploadHandler->Flagrow\Upload\Commands{closure}(Object(Zend\Diactoros\UploadedFile), 0)
#2 /home/u825870850/public_html/vendor/illuminate/support/Collection.php(469): array_map(Object(Closure), Array, Array)
#3 /home/u825870850/public_html/vendor/flagrow/upload/src/Commands/UploadHandler.php(140): Illuminate\Support\Collection->map(Object(Closure))
#4 [internal function]: Flagrow\Upload\Commands\UploadHandler->handle(Object(Flagrow\Upload\Commands\Upload))
#5 /home/u825870850/public_html/vendor/illuminate/bus/Dispatcher.php(202): call_user_func(Array, Object(Flagrow\Uplo in <b>/home/u825870850/public_html/vendor/flagrow/upload/src/Repositories/FileRepository.php</b> on line <b>52</b><br />
I get an error message when trying to install this extension by using composer.
What I type: composer require flagrow/upload
The error I get:
Problem 1
- Removal request for flarum/core == 0.1.0.0-beta7
- flagrow/upload 0.5.7 requires flarum/core ^0.1.0-beta.6 -> satisfiable by flarum/core[v0.1.0-beta.7].
- Installation request for flagrow/upload ^0.5.7 -> satisfiable by flagrow/upload[0.5.7].
You musst run from your flarum Root directory.
wumix I see you reported this on GitHub. We're waiting on your input there.
luuxter does wumix message helped ? You might be in the wrong folder or have incompatible extensions. Please open an issue with your composer.json
content and the output of php flarum info
on GitHub if the issue persists https://github.com/flagrow/upload/issues
Yes i Post @ git
Its amazing extension, Work Perfect in Beta 7.
Thank You!
- Edited
JRay and also @Puschie @limiter @san @sizonov_stas @bikepost
I've just tagged 0.6.0-beta, which adds a feature I've been investing quite some time into.
Templates
Templates are how uploads are shown on your forum. Enforcing proxied downloads and the new image preview in 0.5.0 might have been a bad decision. In order to keep the new functionality intact, but still allow full screen image uploads, the new templates functionality allows you to configure how files are shown per mime type configuration.
release notes
- Added template functionality, allowing to configure per mime type / adapter how files are shown in your forum.
- Vietnamese, Polish, Korean and Chinese translations are updated or added. Thanks to tdtgit, Rylat, Comocozy and BeefOnionDumplings.
Previews in replies now also work due to this feature.
Upgrade
In order to upgrade from 0.5.0 or below, use Bazaar or manually:
composer require flagrow/upload:0.6.* --prefer-dist --update-no-dev -o
php flarum cache:clear
rm assets/rev-manifest.json
Make sure to create a backup of your database and files (assets) regularly.
Downgrade
As this version is tagged beta on purpose; in case you run into any issues revert the upgrade like so:
composer require flagrow/upload:0.5.* --prefer-dist --update-no-dev -o
php flarum cache:clear
rm assets/rev-manifest.json
Have fun
I hope you all enjoy this release. If you do make sure to let us know and if possible support our efforts at patreon.com/flagrow ?
luceos Thank you for this and for tagging me.
I am still experiencing this issue: flagrow/upload104
I see it was closed but without explanation. Does it mean, you resolved it?The update does not seem to work on images that have already been uploaded/ in existing threads.
The image does not show in full/ big size and hovering gives the option to download, which I'd like to disable.