What do you choose before an app uploads its first file?
Use a Google Cloud project with billing and a bucket for your files. Choose its location and storage class. Standard is the class to price first for files customers open often, such as receipts or account photos.
A storage class changes the pricing for keeping and retrieving files. Start with the location where the app runs and where it needs to keep data. Estimate how often the original files will actually be opened.
How can your app share one file from a private bucket?
Keep the bucket private and have your app check who should receive each file. The server can grant one short-lived action using a signed URL on a Cloud Storage XML API endpoint, such as storage.googleapis.com. The signer must have permission for that action.
Public access prevention blocks public grants. It does not block a correctly signed URL. Treat that URL as a temporary key that can be forwarded, and use authenticated downloads when access must stay tied to one account.
Which parts of the bill can grow as customers use it?
Estimate how many gibibytes you store, how many operations the app makes and how much data moves to its destinations. The tables group Class A and B requests per 1,000 operations and show separate rates by storage class, location and bucket setup.
A gibibyte is a binary unit for measuring file size. Use the same unit as the pricing table when you estimate. Colder classes can add retrieval and early-deletion charges. Downloads to the internet can cost a different amount from transfers within Google Cloud.
How can you plan to restore your files on another service?
Draw two fictional files and the app records that refer to them. Use paper before setting up a real bucket. Plan to download the file bytes and carry the app’s access and lookup rules separately.
- Make a small inventoryFor each file write its storage key, owner and the version or metadata you need to keep. Note which files have older generations you must retain.
- Plan the copyUse the console for a single object or look at the Google Cloud CLI and client libraries for a larger copy. Estimate download and any retrieval fees before moving a whole bucket.
- Check the result before switchingPlan to compare counts and open representative files. Verify the owner can still download and a different account is refused. Old signed URLs and bucket permissions need separate handling.