my code at the moment:
return response()->download(storage_path('app/10mb.test'), 'bla.txt',
['Content-Length:' => Storage::disk('local')->size('10mb.test')]
);
I've used livehttp headers plugin to check if my return works fine, and the correct amount of file size is submitted (I think so from reading http codes). It's strange, the correct filesize is submitted, but when I edit the filesize to sth incorrect like:
return response()->download(storage_path('app/10mb.test'), 'bla.txt',
['Content-Length:' => 'Storage::disk('local')-> '12345']
);
The correct filesize is submitted too, I can't understand why? Any idea?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OAlFJG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire