Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-901

Bad MIMEtype detected for PREVIEW and TN datastreams

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Ready for Test
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PDF Solution Pack
    • Labels:
      None

      Description

      An incorrect (or too general, anyway) MIMEtype can be detected on PREVIEW and TN datastreams (application/octet-stream), which can result in odd behaviours like:

      • images appear to load, but when they finish loading, they disappear

      This seems to be due to the use of drupal_tempnam(), which can add additional characters to the end of the file name to make it unique--effectively breaking the extension so attempting to detect the type of the file from the filename breaks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                adam.vessey Adam Vessey
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: