Skip to content

PLEASE Replace / in object by %2F #46

@nathanfallet

Description

@nathanfallet

I lost two hours trying to download an object from a bucket because I had a / in the object name (because it is in a subfolder) and it is not automatically escaped.
PLEASE ESCAPE IT HERE like shown on this answer on StackOverflow: https://stackoverflow.com/a/60585415/8261566
Also note that when using storage from Firebase in an iOS app, there is no need to escape it ourself, so it should be done automatically!

return request.send(method: .GET, headers: headers, path: "\(endpoint)/\(bucket)/o/\(object)", query: queryParams)

And everytime object appears in a URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions