uploading .exe files - Printable Version +- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com) +-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html) +--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html) +--- Thread: uploading .exe files (/thread-181.html) |
uploading .exe files - mrme - 02-17-2010 I would like to upload .exe files for support purposes. I can not seem to figure out how to add them to the approved documents string. Any ideas? Thanks. Re: uploading .exe files - Stephen - 02-17-2010 Create or edit your config_local.php file: Add this: // List of allowed file types // Pay attention to the "Last Message:" in the status bar if your file is being rejected // because of its file type. It should display the proper MIME type there, and you can // then add that string to this list to allow it $GLOBALS['allowedFileTypes'] = array('image/gif', 'text/html', 'text/plain', 'application/pdf', 'application/x-pdf', 'application/x-lyx', 'application/msword', 'image/jpeg', 'image/pjpeg', 'image/png', 'application/msexcel', 'application/msaccess', 'text/richtxt', 'application/mspowerpoint', 'application/octet-stream', 'application/x-zip-compressed','image/tiff','image/tif','application/vnd.ms-powerpoint'); To add a new filetype, check the error in the status bar of opendocman when you try to upload the exe, and copy the filetype info from the message, and place it at the end of the config line above in your config_local.php Re: uploading .exe files - mohnkern - 04-16-2010 I'm trying to do something similar but with odt (Open office) files. I tried text/odt and that didn't work. I couldn't find anywhere where the file type was listed. Scott Re: uploading .exe files - Stephen - 04-16-2010 when the upload fails, you should see a message in the blue bar, on the right side of it. The message should show you what mime-type failed. That will be the mime-type to add. Re: uploading .exe files - mohnkern - 04-16-2010 Actually I figured it out with google searching. For future purposes, odt (a common format) is application/x-vnd.oasis.opendocument.text' Now what's interesting is that it let me upload the original, and didn't reject it until I tried to do a Check in. Re: uploading .exe files - Stephen - 04-16-2010 For future reference, there is a file in opendocman called mimetypes.php that contains a list of all the available mimetypes. Re: uploading .exe files - mohnkern - 04-16-2010 Is there any way on config.php just to include all these mime types? Re: uploading .exe files - Stephen - 04-16-2010 You can create a config_local.php file like the example, and add them there. Re: uploading .exe files - mohnkern - 04-16-2010 Thanks! Good to know, I copied my config.php to config_local.php so I won't lose my settings on the next update |