2 years ago

User specified download link

Posted 2 years ago by sadiss

I have a table which have following fields

id | post_id | sender | receiver | filename | created_at | updated_at

1 | 1 | 1 | 2 | file.jpg | date | date

files are store in

storage/sender/postid/file.jpg which means it is in storage_direcotry/1/1/file.jpg

what i want to create a download link which only allow receiver to download the file any other user or guest try to access the link will end up seeing 404 or any other error.

Please help

Please sign in or create an account to participate in this conversation.