WordPress.org

Ready to get started?Download WordPress

Forums

AP Extended MIME Types
Mime type for .dmg Files (9 posts)

  1. jeffvand
    Member
    Posted 2 years ago #

    I'm trying to use this plugin to upload .dmg files. I did some searching online and found tried this:

    dmg application/octet-stream

    Still not being allowed to upload. We have this activated on a single site on a multi-site network. Any thoughts? It worked with exe. Also added this to the network settings for allowed file types just in case. Still no dice. Thanks for any thoughts you can offer.

    http://wordpress.org/extend/plugins/ap-extended-mime-types/

  2. Josh Maxwell
    Member
    Plugin Author

    Posted 2 years ago #

    Try this MIME Type: application/x-apple-diskimage

  3. jeffvand
    Member
    Posted 2 years ago #

    Grrr.. that is still not working. Any other ideas? Do I need to restart the server or something. Or should it take effect right away?

  4. Josh Maxwell
    Member
    Plugin Author

    Posted 2 years ago #

    Try octet-stream without the application/ bit.

  5. jeffvand
    Member
    Posted 2 years ago #

    Hmmm... no dice. Here is what I have tried.

    dmg octet-stream
    dmg x-apple-diskimage
    dmg application/x-apple-diskimage

    All of them still give me the "[filename] has failed to upload due to an error
    Sorry, this file type is not permitted for security reasons."

    Thanks so much for your help.

  6. Josh Maxwell
    Member
    Plugin Author

    Posted 2 years ago #

    Can you give me some details about your server config? And are you self-hosted or do you use a hosting company?

  7. jeffvand
    Member
    Posted 2 years ago #

    We are self hosted. This is at http://sites.unc.edu. It is a multisite subdomain site (http://its.sites.unc.edu). It is a pretty complicated setup with 4 servers a load balancer in front of it, etc. I can get more info. I don't maintain the infrastructure myself. Is there something I should be asking in particular?

    We are working on setting up a multi-site instance to replace all webservices at UNC. This will host unc.edu and a variety of other huge traffic sites. We really want to activate this plugin site wide (with a network option) and were going to look to modify the plugin for that later so we can set it for the whole site.

    Anyway, thanks for your help and thoughts. Seems to be working great for other file types (exe application/octet-stream).

  8. Josh Maxwell
    Member
    Plugin Author

    Posted 2 years ago #

    I altered my mime-types.txt to include dmg application/octet-stream and tried uploading this file (1.8MB) and it worked.

    My server is a 2008 WinXP running IIS 7. I'm not sure what the difference is between my setup and your's, though. There could be another security issue (such as an .htaccess file) located on your server. Check with your SysAdmin.

    Could you tell me what size your DMG is? Also, I suggest trying to upload the file above so we have the same test file.

    Another suggestion: deactivate the plugin, edit the mime-types.txt file to add in the mime type, restart the IIS or Apache service (depending on your server) or your whole server, then reactivate the plugin.

    We'll figure it out :)

  9. jeffvand
    Member
    Posted 2 years ago #

    Just an update. I downloaded the file above and had the same results. I did deactivate the plugin and make the changes and reactivate it with the same results. Going to check with the sys admin to see if they have any thoughts. Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic