Unable to upload file to firebase storage #96
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Filesystem is not a part of library, and you should define and initialize it in your code before use. You should try with download example first for testing your filesystem. The example is for demonstration how it works and what are required. You have to define The file callback function is the function that provided the reference to the file object (which internally defined in the FirebaseClient/examples/Storage/Async/Callback/Download/Download.ino Lines 216 to 237 in 49726fe The file object will be initiated with For SPIFFS filesystem as an example, you have to initialize it first. For your Filesystem e.g. SD, you have to replace the open function parameter for the mode. You have to check the basic SD example to see the predefined file modes. For the latest ESP32 and ESP8266 core SDKs, you still can use If it does not work when all are correctly setup, that is your SD or filesystem problem which is out of control by the library. |
Beta Was this translation helpful? Give feedback.
Filesystem is not a part of library, and you should define and initialize it in your code before use.
You should try with download example first for testing your filesystem.
The example is for demonstration how it works and what are required.
You have to define
FileConfig
object globally for your file which takes the filename and file callback in the constructor.FirebaseClient/examples/Storage/Async/Callback/Download/Download.ino
Line 83 in 49726fe
The file callback function is the function that provided the reference to the file object (which internally defined in the
FileConfig
), file name and mode.FirebaseClient/…