L
L
Lucius Mooning2018-02-28 15:12:35
Laravel
Lucius Mooning, 2018-02-28 15:12:35

What's the best way to let the file download?

Good afternoon!
The database table has a field that stores the contents of the file, for example, data:application/pdf;base64.
It is necessary to allow the user to download/view the file.
While I see 2 option: 1) create a temporary non-public download link; 2) pass the content through response.
Please show me the solution.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question