Skip to content

Commit

Permalink
fix: storage path now accepts space characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitorgus authored Mar 22, 2024
1 parent 226bdd5 commit 9b43b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/godot-firebase/storage/storage.gd
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func _finish_request(result : int) -> void:
func _get_file_url(ref : StorageReference) -> String:
var url := _extended_url.replace("[APP_ID]", ref.bucket)
url = url.replace("[API_VERSION]", _API_VERSION)
return url.replace("[FILE_PATH]", ref.full_path.replace("/", "%2F"))
return url.replace("[FILE_PATH]", ref.full_path.uri_encode())

# Removes any "../" or "./" in the file path.
func _simplify_path(path : String) -> String:
Expand Down

0 comments on commit 9b43b87

Please sign in to comment.