As already answered file or other utilities cannot work. A solution could be to use metadata during the upload, so that it can be read with head-object without having to download the entire object first. Read docs here
file
head-object