Skip to content

Firebase Error: Firebase Storage: path param cannot contain '..' (storage/invalid-argument) #5180

Closed
@pranab-witbybit

Description

@pranab-witbybit
  • Operating System version: Windows 10 / Windows 11
  • Browser version: Chrome/91.0.4472.164
  • Firebase SDK version: 8.7.1
  • Firebase Product: storage

Problem Description

Files with double dot in name not downloading in web, with the error given in the header.

Steps to reproduce:

  • Upload a file with double dot in its name (such as test..txt). It will successfully upload.
  • Generate its downloadable url with its relative path
  • Download

Relevant Code:

   const storageRef = firebase.storage().ref(pathReference);
      storageRef
        .getDownloadURL()
        .then((url) => {
          window.open(url);
        })
        .catch((err) => { });

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions