Community Support for OpenDocMan (Deprecated)
Upload any type of document - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: General Discussion (https://forum.opendocman.com/forum-9.html)
+--- Thread: Upload any type of document (/thread-537.html)



Upload any type of document - brucec - 07-23-2012

Is there any way to enable uploading any type of document, regardless of MIME type? I would like my users to be able to post any file type. We will be using document types that don't have an associated MIME type.

Bruce


Re: Upload any type of document - Stephen - 08-05-2012

You could probably disable the section of the code during add and checkout that does the mimetype check. If you cannot do that then let me know and we can work something out and get that done for you.


Re: Upload any type of document - safdarmukhtari - 11-04-2012

Dear Stephen,

Can you please give a hint on how to disable the mime file upload check? I want to disable it for file upload.

Thanks


Re: Upload any type of document - Guest - 02-25-2013

comment out the lines that check the type of the file in add.php around where it says ec=13 (error code 13 is for unsupported file)