What i would recommend is using a loop to upload documents, # List of documents to add documents = [ {'field1': 'value1', 'field2': 'value2'}, {'field1': 'value3', 'field2': 'value4'}, # Add more documents as needed ] # Add each document to the collection for document_data in documents: # Add a new document with an auto-generated ID new_document_ref = collection_ref.add(document_data) print(f"Document added with ID: {new_document_ref.id}")
Grande quest, sim, existe. Em FireBase Console existe um arquivo de configuração que permite restringir o acesso e você pode se tornar muito específico nesse arquivo de configuração, com certeza incluirei isso em algum momento de meus vídeos. Além disso, para fazer upload de uma imagem no Firebase, você precisa convertê-la em Bytes antes de fazer o upload
tysm for this tutorial, literally all others didn't work except this one, appreciate it very much, now I can finally further develop my app
Thank you for this! It is nice to know the videos are helping
omg this was SO helpful! Thank you!! Can't wait to watch the next one ^_^
Thanks!
That worked perfect!! Thank you so much. Now I ask you... is it possible to add more than one document at the same time?
What i would recommend is using a loop to upload documents,
# List of documents to add
documents = [
{'field1': 'value1', 'field2': 'value2'},
{'field1': 'value3', 'field2': 'value4'},
# Add more documents as needed
]
# Add each document to the collection
for document_data in documents:
# Add a new document with an auto-generated ID
new_document_ref = collection_ref.add(document_data)
print(f"Document added with ID: {new_document_ref.id}")
thanks, this was straight to the point. r u gonna make the other vids?>
Yes! New video coming soon to explain other firebase functions. Thanks!
How can I create or upload tables in the database ?
thank you
i dont understand what json file you give in the path? can anyone tell
how to get data from storage in python
Existe uma forma de criar categorias para ADM e users onde o ADM poderia por exemplo enviar uma imagem para o storege
Grande quest, sim, existe. Em FireBase Console existe um arquivo de configuração que permite restringir o acesso e você pode se tornar muito específico nesse arquivo de configuração, com certeza incluirei isso em algum momento de meus vídeos.
Além disso, para fazer upload de uma imagem no Firebase, você precisa convertê-la em Bytes antes de fazer o upload
@@BytesOfCode vou tentar obrigado
best tip you can get regarding firebase... don't use firebase.
*Promosm*
Will there be any further updates for your ai assistent? I would love to see any
We can always add on to the assistant! What is something you are interested in?
@@BytesOfCode I'd love to see a general guide on how to launch a custom scripts with the assistant and give any input arguments