| Summary | windows : attachment form missing |
| Queue | IMP |
| Queue Version | 4.0.3 |
| Type | Bug |
| State | Not A Bug |
| Priority | 2. Medium |
| Owners | |
| Requester | fabrice (at) gmail (dot) com |
| Created | 08/31/2005 (7375 days ago) |
| Due | |
| Updated | 11/28/2005 (7286 days ago) |
| Assigned | 08/31/2005 (7375 days ago) |
| Resolved | 11/28/2005 (7286 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
ini_get('upload_tmp_dir')
exactly return? Really the directory being used for file uploads?
files for other applications and write sessions files.
appears in the composing window et attachments DOES work.
State ⇒ Feedback
says that it incorrectly returns writable - the exact opposite of what
you describe. Are you *sure* the directory is really writable (i.e.,
do attachments _work_ now?), and that is_writable is the culprit?
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ windows : attachment form missing
Queue ⇒ IMP
I've proceeded to the installation of Horde 3.0.5 + Imp 4.0.3 under
WS2003 + IIS 6.0 + PHP 4.3.11 (CGI mode) and found an error concerning
attachment when composing a new message. No upload form / attachment
area was shown in the pop-up composing window.
Upload directive and writing in temp dir were fine.
When looking in the /lib/Horde/Browser.php file, I saw a call to
is_writable() function (in allowFileUploads() around lines 795 to
798). Under Windows this function doesn't tell wether the directory is
writable or not (cf. php documentation).
As a quick (and very ugly) fix I commented this section :
if (($dir = ini_get('upload_tmp_dir')) &&
!is_writable($dir)) {
return 0;
and the attachment area came back in my browser :)
Hope this will help.
Regards,
Fabrice