FileContoller::download() tries to return a BinaryFileResponse object. This object checks if the file it is passed is readable, but for non-local/remote streams this will always return false even if the file itself exists. For example below is the output of various methods on the remote File object:

        var_dump($file->getSize());    // int(538937)
        var_dump($file->isFile());    // bool(true)
        var_dump($file->isWritable());    // bool(false)
        var_dump($file->isReadable());    // bool(false)

As can be seen the file size can be read, the file is also known, but it is incorrectly labelled as unreadable and unwritable.

Comments

kalpaitch created an issue.