1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MetaMimeType: View PDF Attachments in-browser 0.2a

Alters the MIME type of .pdf and .txt files so they display in the browser instead of downloading.

  1. Mick West

    Mick West Well-Known Member

    Mick West submitted a new resource:

    MetaMimeType Inline PDF Attachments - Alters the MIME type of .pdf and .txt files so they display in the browser

    Read more about this resource...
     
    robart and arms like this.
  2. RoldanLT

    RoldanLT Well-Known Member

    Thanks!
    Installing this on my live forum (y)

    No settings for this?
     
  3. RoldanLT

    RoldanLT Well-Known Member

    It's better if you can make this:
    Code:
         $mimeTypes = array(
                    'pdf' => 'application/pdf',
                    'txt' => 'text/plain',
            );
    As an admin option/settings so that we can add as many as we want easily.
     
  4. Mick West

    Mick West Well-Known Member

    I know :) I only spent like 20 minutes on it :) I'll give it a bash.
     
    RoldanLT likes this.
  5. RoldanLT

    RoldanLT Well-Known Member

    Thanks, really helpful for me (y)
     
  6. RoldanLT

    RoldanLT Well-Known Member

    And also, Can you make use of the file's file name as Title on browser tab?
    Same as images.
     
  7. Mick West

    Mick West Well-Known Member

    RoldanLT likes this.
  8. Mick West

    Mick West Well-Known Member

    Sorry I can't immediately see how to do that. If someone figures it out I can add it.
     
    RoldanLT likes this.
  9. BassMan

    BassMan Well-Known Member

    Useful add-on, but can you please remove the .DS_Store files.
     
  10. Mick West

    Mick West Well-Known Member

    Sorry about that. Stupid OSX
     
  11. BassMan

    BassMan Well-Known Member

    No problem, just to let you know.
     
  12. Mick West

    Mick West Well-Known Member

    BassMan likes this.
  13. AndreaMarucci

    AndreaMarucci Well-Known Member

    Very interesting but there isn't an option to read the pdf inline instead of seeing them in a separate windows?
     
    BassMan likes this.
  14. BassMan

    BassMan Well-Known Member

    That would be great.
     
  15. AndreaMarucci

    AndreaMarucci Well-Known Member

    Maybe this feature is over the scope of this addon but surely would be great...
     
  16. Mick West

    Mick West Well-Known Member

  17. erich37

    erich37 Well-Known Member

  18. Mick West

    Mick West Well-Known Member

  19. robart

    robart Member

    Thanks for creating this. My users on iOS were having difficulties viewing PDF files.

    This is working fine on 1.4 in case anyone is wondering.
     
  20. RoldanLT

    RoldanLT Well-Known Member

    This even works fine on XF 1.5.0 :)
     

Share This Page