Page 1 of 1
File upload failed
Posted: 02 Aug 2005, 23:47
by pmcconaghy
hi.
Since upgrading from 0.19.2 to 1.0.0RC1 we can't upload files anymore. Everything else works really well.
The error we get is
Code: Select all
APPLICATION ERROR #15
File upload failed. File is not readable by Mantis. Please check the project settings
We're using IIS on Windows Server 2003 with PHP 4.3.11.
I started with a "clean" Mantis directory for all the php files (instead of copying the new version over the old files). I then copied some of the settings from my old config file to the new one.
The settings for file upload are:
Code: Select all
$g_allow_file_upload = ON;
$g_file_upload_method = DISK;
$g_absolute_path_default_upload_folder = 'c:\\somepath\\Mantis\\';
The permissions were ok. I changed the
c:\somepath\mantis folder to give
Everybody write permissions but that hasn't helped.
The projects have valid paths that are subfolders of
c:\somepath\mantis.
Any ideas?
Regards
Peter
Posted: 04 Aug 2005, 17:57
by Fubie
I'm another having upload issues.
I'm using a fresh install of Mantis 1.0.0rc1
Upload in php.ini is on.
I'm on a webhost running Linux.
I'm using ftp for upload.
When I try to upload I keep getting error. Invalid upload path. Directory either does not exist or not writable to webserver
I can successfully FTP into the server via an ftp client using the same setting.
Any help would be appreciated.
Here is the upload settings in my config_inc.php
Code: Select all
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# The default value is ON but you must make sure file uploading is enabled
# in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini.
$g_allow_file_upload = ON;
$g_file_upload_method = FTP;
# FTP settings, used if $g_file_upload_method = FTP
$g_file_upload_ftp_server = 'ftp.fubie.net';
$g_file_upload_ftp_user = 'my_user_id';
$g_file_upload_ftp_pass = 'my_password';
?>
Posted: 06 Aug 2005, 01:54
by thraxisp
Under newer versions of IIS, you also need to give READ access to everybody for it to work.
The ftp method is not well tested in recent releases.
IIS File uploads fail
Posted: 06 Aug 2005, 02:49
by p mcconaghy
thraxisp wrote:Under newer versions of IIS, you also need to give READ access to everybody for it to work.
I had given "everyone" the "full control" permissions on the folder and it still didn't work... I also gave full control to "IUSR_xxx" and "IWAM_xxx". That didn't help either!
The problem ended up being the "upload_tmp_dir" setting in php.ini - it was blank and so using the sytem default (c:\windows\temp I think) and IIS couldn't read it there. I changed it to a directory where IWAM_xxxx had read/write permissions, restarted IIS and it now works.
I think this might be a change that occured between 0.19.2 and 1.0.0RC1 because file uploads broke with the version upgrade.
Regards
Peter
Posted: 08 Aug 2005, 12:05
by RandomSF
I had the same problem as p mcconaghy and solved it similarly. I added RW access for IUSR_ to C:\Temp.
Posted: 09 Aug 2005, 11:58
by vboctor
Fubie, the FTP file upload feature is not designed to be used exclusively. It is designed to be used in addition to saving the files to disk. Hence you project must have the file upload path set to path to which the webserver has read/write access.
The intention of the FTP upload feature was to have a backup process for attachments.
Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect