1

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 ;)

Community
  • 1
  • 1
ana-lu
  • 269
  • 1
  • 3
  • 12

1 Answers1

1

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.

Emii Khaos
  • 9,983
  • 3
  • 34
  • 57