Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Storage → Rename File

AI-generated

Summary

Rename a file in a specified Firebase Storage bucket by providing its current path and a new file name.

Inputs

  • Project Name or ID — Select the Firebase project or specify its ID via expression.
  • Bucket Name or ID — Select the storage bucket or specify its ID via expression. Defaults to the project's default bucket if left empty.
  • Current File Path (required) — The full current path of the file in storage, including folders and original filename.
  • New File Name (required) — The new name for the file, without any path, to rename it to.
  • Options.ifFileExists — Determines behavior if the target filename already exists: overwrite it, fail with an error, skip renaming, or rename by adding a timestamp suffix.

Output shape

a single record containing metadata of the renamed file after operation completion

The response includes information about the file after being renamed. Behavior depends on the 'If File Exists' option selected—operation may overwrite, fail, skip, or create a uniquely suffixed name.

Links

Discussion