When we try uploading a file with metadata, there is no option to upload it along with file. Using the help of Google cloud storage doc, I found a option patch() after setting metadata to a file, but this is a kind of update to that file.
Updated metadata before calling upload_from_filename() method. But no metadata available after upload.
...
file_blob = bucket_obj.blob(gc_file_name)
file_blob.metadata = meta_data
file_blob.upload_from_filename(file_name)
...
Need some suggestions. Expected - Looking for a method which sets the metadata of a file in single step.