if object_name is None:
object_name = file_name
only is meaningful if `file_name` is an unqualified one, otherwise good luck uploading c:\Users\Desktop\awesome.txt to S3Their Java example isn't even legal Java as `string` isn't a type (it's `String`)