Hi,
I am getting below error while uploading new file. As I am new in PHP that's why I can't able to understand the problem. For taking detailed error I have changed "$g_show_detailed_errors" to ON in config_defaults_inc.php file.
APPLICATION ERROR #15
File upload failed. File is not readable by Mantis. Please check the project settings.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
Full path: C:\Inetpub\wwwroot\mantis\core\file_api.php
Line: 594
Variable Value Type
p_bug_id 2 string
p_tmp_file C:\WINDOWS\Temp\php2C39.tmp string
p_file_name Problem.gif string
p_file_type image/gif string
p_table bug string
p_file_error 0 string
p_title string
p_desc string
Filename Line Function Args
C:\Inetpub\wwwroot\mantis\core\file_api.php 594 trigger_error ( '15', 256 )
C:\Inetpub\wwwroot\mantis\bug_file_add.php 56 file_add ( 2, 'C:\WINDOWS\Temp\php2C39.tmp', 'Problem.gif', 'image/gif', 'bug', 0 )
Problem while uploading file.
Moderators: Developer, Contributor
-
- Posts: 7
- Joined: 05 Feb 2010, 10:25
Re: Problem while uploading file.
Web server which I am using is IIS.
Re: Problem while uploading file.
First check, whether C:\WINDOWS\TEMP is available and writable on your server with the user who is running PHP
To configure another direcory for uploads check the setting of upload_tmp_dir in file php.ini
To configure another direcory for uploads check the setting of upload_tmp_dir in file php.ini
-
- Posts: 7
- Joined: 05 Feb 2010, 10:25
Re: Problem while uploading file.
Hi Atrol,
Thanks for reply.
There was Permission problem, after giving permission it is not giving any error while uploading but when I am uploading image (20 KB Image) it is not uploading whole image into the database. And In the case of .doc file it is showing corrupted file at the time of view.
Thanks for reply.
There was Permission problem, after giving permission it is not giving any error while uploading but when I am uploading image (20 KB Image) it is not uploading whole image into the database. And In the case of .doc file it is showing corrupted file at the time of view.