luceos It's very much an expansion that I'm looking forward to, and it's the most important to me. Read this post many times a day.
FriendsOfFlarum upload, the intelligent file attachment extension
It's so important that pictures and attachments are uploaded. Is it possible to integrate them inside flarum?
v0.11 released:
Added
- Extender that allows forcing or disabling specific drivers.
Changed
- Backend refactored to allow extender.
- Frontend refactored for beta 14+.
Example of using the new extender in the local extend.php
:
return [
// Disables a specific driver
(new \FoF\Upload\Extend\Adapters())->disable('local'),
// Forces a specific driver
(new \FoF\Upload\Extend\Adapters())->force('s3'),
];
Very cool!! And thanks a lot for considering our use case. Will implement after b14.
luceos Why is this prompted?
composer require fof/upload
Using version ^0.10.0 for fof/upload
./composer.json has been updated
Running composer update fof/upload
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires fof/upload ^0.10.0 -> satisfiable by fof/upload[0.10.0].
- fof/upload 0.10.0 requires flarum/core >=0.1.0-beta.12 <0.1.0-beta.14 -> found flarum/core[v0.1.0-beta.12, v0.1.0-beta.13] but the package is fixed to v0.1.0-beta.14.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
shebaoting This extension is not compatible with Flarum beta 14 yet
luceos says v0.11 has been released. And it's supporting beta 14.
- Edited
shebaoting yeah. Correct. Will need to look into this.
Not sure why it won't install v0.11 can you run why-not? On mobile can't give exact command here.
edit:
composer why-not fof/upload 0.11
luceos
When I run this command from composer require fof/upload
, I get the following error.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ramsey/uuid[3.5.2, ..., 3.7.3] require paragonie/random_compat ^1.0|^2.0 -> found paragonie/random_compat[v1.0.0, ..., v1.4.3, v2.0.0, ..., v2.0.19] but the package is fixed to v9.99.100 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- ramsey/uuid 3.8.0 requires paragonie/random_compat ^1.0|^2.0|9.99.99 -> found paragonie/random_compat[v1.0.0, ..., v1.4.3, v2.0.0, ..., v2.0.19, v9.99.99] but the package is fixed to v9.99.100 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- ramsey/uuid[3.9.0, ..., 3.9.3] require paragonie/random_compat ^1 | ^2 | 9.99.99 -> found paragonie/random_compat[v1.0.0, ..., v1.4.3, v2.0.0, ..., v2.0.19, v9.99.99] but the package is fixed to v9.99.100 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- fof/upload 0.11 requires ramsey/uuid ^3.5.2 -> satisfiable by ramsey/uuid[3.5.2, ..., 3.9.3].
- Root composer.json requires fof/upload ^0.11.0 -> satisfiable by fof/upload[0.11].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
mekici seems like a similar issue to FriendsOfFlarum/upload243 but I'm unsure what could cause it.
I was able to install the new version. FYI. Composer did tell me though that it is recommended to install new versions of certain things. But, it’s just a suggestion/recommendation.
And just like that my Flarum installation is beta 14 plus with pretty much all the same extensions I had with beta 13. Thank you, thank you, thank you!
Hi first all, thanks for this extension , it was impossible to install the extension, the error message that appears is the following:
Using version ^0.11.0 for fof/upload
./composer.json has been updated
Running composer update fof/upload
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires fof/upload ^0.11.0 -> satisfiable by fof/upload[0.11].
- fof/upload 0.11 requires guzzlehttp/guzzle ^6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.5] but the package is fixed to 7.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The same error appears with the extension FOF geoip. I would appreciate any kind of help to fix this.
JoZ3 You can test it with the composer why guzzlehttp/guzzle
command.
Source: https://discuss.flarum.org/d/24684-can-only-install-one-of-guzzlehttpguzzle
Just a question and maybe suggestiono, why don't we use as BBCode for image uploading? The current BBCode does not work with social media preview in my experience.
huuduy216 since version 0.10.0, you can register custom templates that use existing markdown/bbcode tags https://github.com/FriendsOfFlarum/upload/wiki/Custom-Templates
That same version also introduced the "just URL" template out of the box, which can be used with AutoImage.
Hi, after following DursunCan's recommendation I managed to install the extension, but unfortunately it doesn't work, on my local server it works perfectly, but on the shared hosting this error appears in the firefox console:
On the shared server the local storage option and the one that works with imgur don't work. I honestly can't find what the error may be