Skip to content

Download filename should not be encoded #392

@jg-development

Description

@jg-development

Hi,
if I download a file like "fooö.zip", the filename is after download "foo%C3B6.zip".
This is because of this line in the AttachmentService:

        // extract filename
        $file = substr(strrchr($attachment->content, '/'), 1);

I am not sure why the filename is extracted from the url and not from the Attachment object.
If the filename would be like:

$file = $attachment->filename;

... than the file would be correct downloaded. Can somebody help me here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions