Skip to content

Force download from DO spaces not working. #3668

@shankhadevpadam

Description

@shankhadevpadam

I have configured digital ocean spaces for the media library. It's worked fine. But force download in not working.

public function download(Media $item)
{
    return response()->download($item->getPath(), $item->file_name);
}

It's return

Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException

it returns a path like this

media/9776/PXL_20240704_040827266.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions