Is this:
"General preferences
Maximum file size (in kilobytes)"
is for imgur too>?
Flagrow image uploader for Flarum forum messages
- Edited
Lol i just updated and now i cant upload images to imgur ?
I tried to reinstall it but still cant upload..
Huh lol.. after few seconds its working but i dont get uploading progress.
I am sorry...
I am having issues using the latest version in the new beta...
Using local storage the uploads fail.
Debug Info:
POST https://domain.com/forum/api/image/upload
{
"errors": [
{
"status": "404",
"code": "route_not_found"
}
]
}
Thank you in advance for any help you might be able to provide. =)
- Edited
For anyone having a similar issue, somehow php-gd was broken. Check that it is installed and enabled in php.ini.
I am guessing the logic of the extension must have changed somehow, because it was working in the previous beta without it.
Anyways... Thank you all for your time and consideration.
Though I do wonder what is re-enabling an extension supposed to fix exactly?
I have tried re-enabling and re-installing the extension. I have also checked permissions.
Error log gives me no output...
Access log gives me the following:
[03/Apr/2016:23:39:20 +0200] "POST /forum/api/image/upload HTTP/1.1" 301 209
[03/Apr/2016:23:39:20 +0200] "GET /forum/api/image/upload/ HTTP/1.1" 404 54
I would also note that the DEBUG flag that appears says: "The requested resource was not found."
What I don't understand is why it is even referencing that folder location?
I created that location after trying to get it to work, but without that location existing it throws the following error:
Oops! Something went wrong. Please reload the page and try again. DEBUG
500 Internal Server Error
POST https://domain.com/forum/api/image/upload
null
If I create that folder location I get the other error. I have left the default upload location at assets/images so , again, I am really unclear where this other directory is getting called from.
However, looking again with that directory not existing, it does produce the following error:
PHP Fatal error: Call to undefined function Intervention\\Image\\Gd\\imagecreatefromjpeg() in /home/user/public_html/forum/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php on line 33, referer: https://domain.com/forum/d/45-thread-title
- Edited
I install v0.2.1 and enable the extension,but when I upload a image, the uploading circle was not appear, wait a few second the image was upload success, and the link was input to textbox.
It's all done, but no uploading circle, the problem is?
thanks
ps. My Flarum is beta-5
- Edited
how to save img by year/month folder ?
.
from
/assets/images/1-F08JwrDb40l3HVYB.jpeg
to
/assets/images/2016/201604/1-F08JwrDb40l3HVYB.jpeg
matpompili Hi! How soon will support upload any file?
The framework that we (mostly @luceos actually) developed should be easily adaptable to a generic file uploader. At the moment though it is not in the roadmap, but it may be in the future ?
Nice extension, just what I am looking for. one thing to notice is that when the post is deleted, the picture is still there in the local assets/images directory. Taking a peek at the code, it looks like the delete function is not implemented. I guess I have to go ahead and take care of that and also adding Amazon S3 support to it.
oksteven When you do, submit a PR to the Flagrow team on github so they can integrate it into the extension. ?
- Edited
Help
POST http://flarum.dev/api/image/upload
{
"errors": [
{
"status": "422",
"code": "validation_error",
"detail": "The image may not be greater than 2048 kilobytes.",
"source": {
"pointer": "/data/attributes/image"
}
}
]
}
Hello,
When I upload the image it will be croped.
How can I fix it
AlexanderRusov Toggle the "resize" option off if it is on, that might be the problem, although it just supposedly resizes, not crop it. ?