krayin/laravel-crm

Downloading any file from the leads changes the name of the file. The file name must be same as the file uploaded.

Closed this issue · 1 comments

Bug Report

Title

File Name Changes Upon Downloading from Leads

Issue Description

When downloading a file attached to a lead, the file name changes and does not match the original file name that was uploaded. The file name should remain consistent and retain its original name during both upload and download processes.

Steps to Reproduce

  1. Navigate to the Leads section in the admin panel.
  2. Attach a file to a lead with a specific name (e.g., example-document.pdf).
  3. Save the lead and proceed to download the attached file.
  4. Observe the downloaded file name.

Actual Result

  • The downloaded file name differs from the original name provided during the upload.

Expected Result

  • The downloaded file name should be the same as the original file name uploaded to the lead.

Proposed Solution

  1. Update the file handling mechanism to ensure the original file name is preserved during upload and download.
  2. Add validation to confirm file name consistency across upload and download actions.
  3. Test across different file types (e.g., .pdf, .docx, .jpg) to ensure compatibility.

Acceptance Criteria

  1. File names remain unchanged from upload to download.
  2. The fix works across all supported file formats and browsers.
  3. Proper testing is conducted to avoid regressions in file handling behavior.

Attachments:

Random.Name.mp4

As per the discussion with @devansh-webkul Sir, hash encryption is being used in this case, and therefore, this issue is considered invalid.

Thank you.