Is it possible to get S3 file size using Gaufrette?

309 Views Asked by At

I read this question so I know how to get the size without KnpGaufretteBundle but I'm wondering if there's a way to use it. I can't find anything on the Adapter classes.

Check file size on S3 without downloading?

Thanks ;)

1

There are 1 best solutions below

0
On

You can't. The S3 adapters don't implement the SizeCalculator interface. But you may want to create a pull request improving them, so the adapter would do a HEAD request to the object to retrieve the Content-Length.