thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 525 forks source link

ValueError on .put(inMemoryFile) #415

Open MrPieler opened 2 years ago

MrPieler commented 2 years ago

When adding a file to storage using the child().put() method using a file that is not physically stored it gives ValueError. This is due to not being able to read the amount of bytes in the file. This is usually solved by adding a chunk size for the bucket. However this is not possible using the .put() method at the moment. I propose it is added as an optional parameter for the .put() method which would easily solve the issue at hand.