i accessing google cloud storage by blobstore api, I would like to generate file names automatically instead of create it in the server. actually i want to do that, because it is hard to me to create a unique file name every time the user upload file. thank you
If you are using Python you can simply use UUID to generate your random filenames like this:
import uuid
...
# with dashes
filename = uuid.uuid4()
# or without dashhes
filename = uuid.uuid4().hex
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With