Skip to content

FR: Move files between directories in Firebase Storage without deleting and re-uploading #1910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
willbattel opened this issue Oct 4, 2018 · 4 comments

Comments

@willbattel
Copy link

Currently the only way to relocate a file in Firebase Storage is to delete the original and re-upload to the new location. This usually isn't disastrous, but it's far from optimal. If I'm not mistaken, Google Cloud Storage, which is the backbone for Firebase Storage, does allow file move requests. Is this a feature we could discuss for inclusion in a future version of Firebase Storage?

@derhuebiii
Copy link

+1

@WaseemRakab
Copy link

up for this !!
we needs this

@KevinhoMorales
Copy link

Go ahead Firebase! Please We needs this!

@jelizarovas
Copy link

jelizarovas commented Apr 1, 2022

  bucket.file("src/Screenshot (1).png").move("dest/file.png");

works

Note: it will still call onFinalize storage function - if you have thumbnails generation cloud function it will run on every move, so technically no need to move thumbnail files.

Edit: Sorry, did not notice this was ios sdk - i've tested it on admin sdk

Edit2: If there is none in ios sdk, you can set up cloud function that moves files via admin sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants