mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

I can't upload my text file to firebase storeage #267

Closed dnshshkr closed 1 year ago

dnshshkr commented 1 year ago

I've followed the instructions and set all the parameter accordingly. The code seems fine when it comes to writing something into SPIFFS but when it comes to uploading it to the firbase storage it says "File not found". Please help, thanks.

mobizt commented 1 year ago

This repository is for the library that works with RTDB database and legacy Firebase Cloud Messaging only.

mobizt commented 1 year ago

You should read comments in the library examples carefully.

mobizt commented 1 year ago

That is because file name you provide to the upload function does not exist in flash filesystem.

You can upload the sketch data using the upload tool plugin in Arduino IDE by creating the data folder with your files inside at the same path of your sketch file.

The simplest way to test without upload sketch data is testing with download example first. Then test upload example with the file that you download previously.

dnshshkr commented 1 year ago

Hi, I’ve tried the DownloadFile and it worked fine. It can download and read the file in Firebase Storage. But when I swap to UploadFile and change mime type to “text/plain”, the same message appeared “File not found”.

mobizt commented 1 year ago

Don't just say because it can't help anything.

You should post your code and all the debug message on serial to see what's wrong in your code.

mobizt commented 1 year ago

Please use Github instead of using Email reply.

mobizt commented 1 year ago

As I said, you should post your code not snippets and all Serial debug.

Don't waste my time with just little information.

dnshshkr commented 1 year ago

Sorry, I’ve posted the full one.

From: Suwatchai @.> Sent: Sunday, 5 March, 2023 4:14 AM To: @.> Cc: MUHAMMAD DANISH BIN @.>; @.> Subject: Re: [mobizt/Firebase-ESP32] I can't upload my text file to firebase storeage (Issue #267)

As I said, you should post your code not snippets and all Serial debug.

Don't waste my time with just little information.

— Reply to this email directly, view it on GitHubhttps://github.com/mobizt/Firebase-ESP32/issues/267#issuecomment-1454862067, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR4AWRJKUM4EHRCB6EPZTRLW2OPB5ANCNFSM6AAAAAAVPUQG3Y. You are receiving this because you authored the thread.Message ID: @.***>

mobizt commented 1 year ago

The issue will be fixed soon. I will inform you when it is available.