Answer the question
In order to leave comments, you need to log in
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
But if you send it in attachment, then it should be downloaded along with the letter, right?
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question