mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #769] file downloads - Content-Type not set correctly #526
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:

This is caused by incorrect string specification, line 3063 in
tinyfilemanager.php:header('Content-Type: $contentType');also, the function that generates
$contentTypemay return arrays, so it will have to be transformed to a string before setting header.