G
G
ganjo8882019-04-22 16:57:14
Laravel
ganjo888, 2019-04-22 16:57:14

Where to store csv file to send by mail?

In my application, I generate a csv file for further sending it to the user's mail via attachment.
Question: where should I store this file so that the user receives an email with a link to this file for download.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2019-04-22
@ganjo888

But if you send it in attachment, then it should be downloaded along with the letter, right?

U
Urvin, 2019-04-22
@Urvin

Because there is a clarification on the attachment, options:
- /tmp/
- ./runtime - project directories with appropriate rights
- php://memory
I.e. where you like it depends on the phase of the moon and what you intend to do with this file in general.

A
Alex Wells, 2019-04-23
@Alex_Wells

PS : not very secure Storage::disk('public')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question