FriendsOfFlarum upload, the intelligent file attachment extension
luceos pdo is enabled and functioning. I never turn debug mode off. The uploader seems to behave fine, it doesn't throw any errors visually.
Here is the settings page:
From the error log data, I think it is related to how the relative path is set:
[error][client:IPADDRESS] File does not exist: /home/user/public_html/assets
The folder address should actually be coming up as /home/user/public_html/forum/assets
f0r3v3r hm, the old code was wise to use the UrlGenerator, if you're able to create an issue on Github I'll take a look tomorrow.
I hate to throw the question out there without having time to check myself or provide some decent information...
However, is anyone finding the extension rotates images? Had a couple of members mention it on Skype. Just not had time to look into it.
Updated to 0.2.1, cleared the cache, works fine now. ?
Thank you for your support.
- Edited
Hmm.. is this able to allow uploading of pdf files?
I added the mime types (image|audio|video|application/pdf)\/.*
per this.
Just pdf
didn't work.
When I attempt a file upload (8k in size) I get this:
<br />
<b>Warning</b>: preg_match(): Unknown modifier 'p' in <b>/www/devflarum/forum/vendor/illuminate/validation
/Validator.php</b> on line <
"NetworkError: 422 No Reason Phrase - https://devflarum.xyzz.work/api/flagrow/upload"
TypeError: error.response is null
children = error.response.errors.map(function (error) {
You mention application/pdf here. Maybe I'm missing something ?
Any plan to support https://postimage.org/ for images storage? Maybe you can see sample code here https://postimage.org/site-plugins/ then adjust for your extension.
MasAntok not at this point, but feel free to open an issue on github: https://github.com/flagrow/upload/issues I'll see what I can do.
I’m trying to upload more file types and added allowed mime types like this:
((image|audio|video)\/.)|(application\/.)
But the uploaded files are treated like images in the post html:
<img src="/assets/files/2016-11-11/08:33:240-blank-docx" title="" alt="blank-docx">
And the markdown string is:
![blank-pdf] (/assets/files/2016-11-11/08:47:150-blank-pdf)
- Edited
simss ah i see the error, the !
has to be dropped when it's not an image.. Oops, my bad.
edit; issue created, fixed please wait for a new release:
Really wanted to share this with you, just implemented drag and drop functionality. The whole composer popup will be able to handle any (multiple) files moved into it ?
Have to fix a few other things before I can tag another release, but if you're as equally happy as I am with this, feel free to buy me a coffee.
- Edited
0.3.0 was just released!
- Drag and drop support, an open composer area now works as a drop field, dragging files onto the composer will make it become greyish, files are injected in the same way as using the upload button.
- File processing based on mime type is moved outside of the handler into an event listener. I've included a fix for showing non-image files as image markdown links.
- The mark down string of a file is now saved in the database.
Check the update heading in the OP on how to update.