![]() |
mime_content_type(): Empty filename or path - 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: mime_content_type(): Empty filename or path (/thread-597.html) |
mime_content_type(): Empty filename or path - Guest - 03-07-2013 Hello All, I'm receiving an error when trying to upload a PDF file. Upon adding the file I'm receiving the error "MIMETYPE: Failed" indicating that the MIMETYPE of the file is not on the accepted list. However according to Chromes developer tools the file is type is application/pdf which is on the default list of accepted MIMETypes. Upon reviewing the Apache error logs the following message is appearing: mime_content_type(): Empty filename or path in /var/www/html/opendocman/add.php on line 466 My testing in the browser indicates it is passing the proper MIMEType. In researching the PHP call "mime_content_type()" it is indicated the function has been deprecated which could be part of the problem. * PHP 5.3.3 * Google Chrome Version 25.0.1364.155 * OpenDocMan 1.2.6.3a Any help would be greatly appreciated! Re: mime_content_type(): Empty filename or path - Stephen - 03-08-2013 A similar post here:http://opendocman.com/forum/viewtopic.php?f=6&t=877 There have been some mimetype issues recently and we are trying to figure out the best way to handle it. The post above discusses one of the proposed solutions. |