Twitter LogoFacebook Logo
Cloud Storage - Uploading Files
Hello, in this video, I’ll show you how to upload files to the Firebase Cloud Storage in Unreal Engine with the Firebase Blueprint Plugin.
By: King

Hello, in this tutorial, I’ll show you how to upload files to the Firebase Cloud Storage in Unreal Engine with the Firebase Blueprint Plugin.

Upload File

To upload a file, call the Upload File node. 

Image from Codeible.com

Then use the Local File Path pin to specify the location of the file on the device.

If you watched the download file video, I downloaded a file and placed it in a folder call PersistentDownloadDir.

To get the path to that directory, I’ll use the Project Persistent Download Dir node. Then I’ll append it with the file name.

Image from Codeible.com

The Storage Path pin, represents where to store the file in the Cloud Storage.  Click and hold on it, then drag on an empty spot.


Search for Make Array and select it in the menu.

Image from Codeible.com

Each element represents the directory, where the last element is the file name.

If I put images followed by uploadedImages and then myfile.png, it’ll upload the file in the images/uploadedImages directory of Cloud Storage.

Image from Codeible.com

Callbacks

For the last part, add the callbacks.

Click and hold on them, and then drag on an empty spot. 

Select Add Event, then Add Custom Event.

Image from Codeible.com

Full Connection

Image from Codeible.com

If I run the app, and click on the upload button, a message will show up, telling me that the file was uploaded.

Image from Codeible.com

When I go to the Cloud Storage in the Firebase console, and go into the images folder, there is another folder call uploadedImages. If I go inside, the file should be there.

Image from Codeible.com

Sign In