View Issue Details

IDProjectCategoryView StatusLast Update
0005280mantisbtinstallationpublic2005-07-23 02:26
Reportersdabel Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version0.19.2 
Summary0005280: file upload not working on windows installation
Description

I can't get the file upload to work in Manits. Whenever I try to upload a file I get:

APPLICATION ERROR #15

File upload failed. PHP file #222288">uploads may be disabled. Please ask your admin to run the admin_check script to debug this problem.

When I run check.php I get:

File #222288">Uploads
File #222288">uploads are ENABLED.
File #222288">uploads will be stored in the DATABASE.

The following size settings are in effect. Maximum upload size will be whichever of these is SMALLEST.
PHP variable 'upload_max_filesize': 2000000 bytes
PHP variable 'post_max_size': 8000000 bytes
Mantis variable 'max_file_size': 5000000 bytes

Mantis 0.19.2 on IIS 5.0
MySQL 4.0.20 is on a seperate Solaris box
PHP is 4.3.10

I have given my mantis account on MySQL full rights.
Safe mode=off

When I use the DISK method of #222288">uploads I get the same error. I created an upload directory with write access. When the permissions are wrong matis gives the appropriate error so I beleive that it is attempting to write to the correct location.

Other php applications on the same system (dotproject) are able to upload files.

So php can upload, and my config settings seem correct.

TagsNo tags attached.

Activities

mfisher

mfisher

2005-02-26 18:22

reporter   ~0009391

I have experienced the same problem. In testing it appears to be version 0.19.1+ under IIS 5.0+. 0.19.0 has worked for me on IIS 6.0, and 0.19.2 has worked for me under IIS 4.0.

thraxisp

thraxisp

2005-04-05 11:03

reporter   ~0009713

This is probably related to the uploaded file not being readable by the Mantis code. I seem to recall this being a problem with IIS. Can you make sure that the temp directory is readable and writable?

mfisher

mfisher

2005-04-05 13:09

reporter   ~0009725

When I added read permission for "Everyone" to the Windows temp directory, uploads started working. I still think this may be a bit of a bug because version 0.19.0 worked without making any permissions changes, and so did uploading in other PHP programs. Is that strange? What does 19.1+ do differently, and what are the benefits from the new way as opposed to the old way? (obviously more work required upon installation isn't a benefit.)

thraxisp

thraxisp

2005-06-10 12:07

reporter   ~0010476

Web server setup problem. IIS 5.0+ seems to be pickier about uploading files than previous versions.