Bug #214
Media upload not work under Windows
| Status: | Fix Commited | Start: | 2009-12-16 | |
|---|---|---|---|---|
| Priority: | Undecided | Due date: | ||
| Assigned to: | Alex Cartwright | % Done: | 100% |
|
| Category: | Zula::General | |||
| Target version: | TangoCMS Project - 2.5.0 | |||
| PHP Version: | 5.3.0 |
Description
OS: Windows XP
PHP: 5.3.0
Function zula_get_file_mime from common.php file not work with next log:
[warning] -- (unknown:0) zula_get_file_mime() failed to get mime via FileInfo [info] -- (unknown:0) zula_get_file_mime() reverting to "mime_content_type", advised to install "FileInfo" extension [warning] -- (unknown:0) zula_get_file_mime() no method to get mime type, advised to install "FileInfo" extension
The problem in PHP function finfo_file which expects to get the file name in absolute form.
I fix this by adding line:
$file = realpath( $file );
in the beggining of function definition.
Related issues
| related to TangoCMS - Bug #92: Media thumbnail creation not working under Windows Vista | Invalid | 2009-02-01 |
Associated revisions
Revision 892ef5104f3a88a172103787c7b16de158a0984f
Fixed Bug #214 "Media upload not work under Windows"
Strange issue on Windows where it requires a full path within FileInfo to get the mime type
History
Updated by Alex Cartwright 3 months ago
Strange, nothing in the docs says it needs a absolute path to the file for Windows. I'll confirm the fix later on and set for 2.4.1. Thanks =)
Updated by Alex Cartwright 3 months ago
- Status changed from New to Fix Commited
- % Done changed from 0 to 100
Applied in changeset 892ef5104f3a88a172103787c7b16de158a0984f.
Updated by Alex Cartwright 3 months ago
- Category set to Zula::General
- Assigned to set to Alex Cartwright
- Target version set to 23
- PHP Version set to 5.3.0
Updated by Alex Cartwright about 1 month ago
- Target version changed from 23 to 16
Updated by Alex Cartwright about 1 month ago
- Target version changed from 16 to 2.5.0