i am trying to use the $file->download() method in v3 and i am having trouble.
my $file is set up properly
........ [hash] => bd1addf8d8dfbcc7c1da2cc19b18eb92 [filename] => float-panel-2.zip [name] => float-panel-2 [safeName] => float-panel-2 [extension] => zip [size] => 203151 [niceSize] => 198,39 kB [modified] => 2018-11-15T12:29:10+00:00 [mime] => application/zip [type] => archive [isWritable] => 1 ........ [url] => http://v3.test/media/pages/product2/1697901891-1542284950/float-panel-2.zip
when the download method is called it’s starting a download with the correct file/filename, but the file downloaded has 0 bytes and is obviously empty.
i am pretty much using the function vanilla inside a function declaration after checking a few things…
// $file object as seen above $file->download(); exit;