View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20041Bug reportsFile managerpublic2025-04-01 16:01
ReporterFreda Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Summary20041: Email templates - There is no File Size Check for Email Attachments.
Description

Add file size limit for email attachments. Users can upload files that exceed PHP and server limits (upload_max_filesize, post_max_size), leading to failed uploads, Email sending errors without clear error messages.

Steps To Reproduce

Steps to reproduce

  • Create a simple survey
  • Add a few participants
  • Go to email templates (side menu) and add a large file as attachement (~11MB)
  • Activcate survey and try to send email invitation. An error message appears.

Expected result

  • The system should check the file size before uploading.
  • If the file exceeds the configured limit, an error message should be displayed, preventing the upload.
  • The error message should clearly state the maximum allowed file size based on the server configuration. (5MB)

Actual result

  • The file upload proceeds without validation.

  • If the file exceeds the limit, it fails with this Error message: There are errors with this template's attachment. Please check below.

  • The user can proceed to activate the survey, and when the try sending invite emails to participants there is another error.
    Error message: Could not instantiate mail function.

TagsNo tags attached.
Attached Files
Bug heat0
Complete LimeSurvey version number (& build).
I will donate to the project if issue is resolvedNo
Browser.
Database type & version.
Server OS (if known)
Webserver software & version (if known)
PHP Version.

Users monitoring this issue

There are no users monitoring this issue.

Activities

Issue History

Date Modified Username Field Change
2025-04-01 16:00 Freda New Issue
2025-04-01 16:00 Freda File Added: Screenshot 2025-04-01 at 15.57.37.png
2025-04-01 16:01 Freda Assigned To => DenisChenu
2025-04-01 16:01 Freda Status new => assigned