Skip to content

Download filename issue #75

@serjooo

Description

@serjooo

Hello! Great project here first of all very useful!

Second of all, there is a bug that I found where if the file name is a "/" it messes up renaming the file since it doesn't consider it a file name, rather as a path, so when i rename, I get my Documents directory nested in subfolders inside other subfolders with the renamed filename. I think there should be a protection against this.

This happened since I allow my users to download any html page they are on, and if you are getting the file name from the last path component of the URL it usually would see the last path component as a "/". I suggest also an improvement, if you get the response of the URL, I think you can access a property of response.suggestedFilename might be better

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