[GH-ISSUE #769] file downloads - Content-Type not set correctly #526

Closed
opened 2026-03-02 15:59:30 +03:00 by kerem · 0 comments
Owner

Originally created by @mclorch on GitHub (Apr 8, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/769

the header is not set correctly for file downloads:
image

This is caused by incorrect string specification, line 3063 in tinyfilemanager.php :
header('Content-Type: $contentType');

also, the function that generates $contentType may return arrays, so it will have to be transformed to a string before setting header.

Originally created by @mclorch on GitHub (Apr 8, 2022). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/769 the header is not set correctly for file downloads: ![image](https://user-images.githubusercontent.com/68969684/162456196-403809da-8433-416d-bdc4-6b7974adb251.png) This is caused by incorrect string specification, line 3063 in `tinyfilemanager.php` : `header('Content-Type: $contentType');` also, the function that generates `$contentType` may return arrays, so it will have to be transformed to a string before setting header.
kerem closed this issue 2026-03-02 15:59:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#526
No description provided.