View Issue Details

IDProjectCategoryView StatusLast Update
0026751mantisbtattachmentspublic2020-03-10 17:23
ReporterRLight1 Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformWindows OSServer 2012 r2 
Product Version2.10.0 
Summary0026751: Attachments not working - HTTP ERROR 500 - Server unable to handle request
Description

When users are adding attachments to their posts they are met with "HTTP ERROR 500" Server unable to handle this request.
I have set up a directory in the root of C: and entered this into the "Upload file path" under "Edit project" the file path is as follows C:\temp\
I can see files in this directory see attachment "tempupload"

My config_inc.php section for the attachments is as the following

# --- Attachments / File Uploads ---
 $g_allow_file_upload   = ON;
 $g_file_upload_method  = DISK; 
# $g_absolute_path_default_upload_folder = 'C:\temp\'; # used with DISK, must contain trailing \ or /.
 $g_max_file_size       = 5000000;  # in bytes
 $g_preview_attachments_inline_max_size = 256 * 1024;
# $g_allowed_files      = 'jpg,txt,png';        # extensions comma separated, e.g. 'php,html,java,exe,pl'
# $g_disallowed_files       = '';       # extensions comma separated

(Note that "$g_absolute_path_default_upload_folder" is disabled in the above. If I enable it then I am no longer able to access the site)

See attachment "Check" For http://127.0.0.1:81/mantis/admin/check/index.php results

I am now stuck on how to get the attachments working and hope someone can see the fault. Please let me know if you require any further information from me.

Steps To Reproduce

Any time anyone adds an attachment they are met with the Http error 500 page

TagsNo tags attached.
Attached Files
tempupload.PNG (43,821 bytes)   
tempupload.PNG (43,821 bytes)   
Check.PNG (37,595 bytes)   
Check.PNG (37,595 bytes)   

Activities

RLight1

RLight1

2020-02-28 03:38

reporter   ~0063713

uploaded an attachment for the attachment section of the config file as copying the text seemed to mess with the format

Attachment.PNG (14,171 bytes)   
Attachment.PNG (14,171 bytes)   
atrol

atrol

2020-02-28 03:42

developer   ~0063714

RLight1,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

Be also aware that you are using an outdated version.
Upgrade is recommended.