• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Hiob the file extension creates a database entry, having a pdo failure will stop the code. You'll probably receive an error when you enable debug in your config.php.

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.

      Released 0.2.1 minor update that;

      • generates url better (fixes issue reported by yekenuk ) causing issues for forums installed in subdirectories
      • added Turkish language

        Updated to 0.2.1, cleared the cache, works fine now. ?
        Thank you for your support.

        yekenuk this was an issue in the flagrow image upload extension and could still be the case as a bit of the logic was borrowed. I'll take a look as soon as I'm able.

        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 ?

          Kulga escape the / so :

          ((image|audio|video)\/.*)|(application\/pdf)

          That should do it.

            luceos ATM, didn't need external storage because I test Flarum on local environment. Maybe next time while ready to run as online.

            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)

              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:

              flagrow/upload27

              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.

                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.

                  luceos

                  as you wish..
                  just sent you a small cup of coffee from PayPal with Transcation ID: 0Y517479ST130172G ?

                  I am a fans of your previous IMAGE UPLOAD extension.
                  Thanks for the great work...

                  wishlist:
                  - watermark
                  - embedded video player

                  regards,
                  FBI

                    FBI thanks. I'll see if I can get the watermark feature moving for you ?