1 year ago

Filesystem S3 Driver - working with object versions

Posted 1 year ago by bcharron

I using AWS S3 to store files that are uploaded to my application. I have 1 file that will be uploaded on a weekly basis. This file has the same name every week. S3 has an option to store versions for a specific object, thus the file will not be overwritten when uploaded each week. I am wondering if there is a way to interact with a specific version of the S3 object? I would like to get the version ID back from the Storege::put request, so that I might be able to retrieve a specific object version. When I run Storage::get($filename), I get the latest version of the file, but nothing more than the file contents. I have also tried Storage::getMetadata, but the version is not included with that information.

Please sign in or create an account to participate in this conversation.