Send_download Portable Elixir -

: A tuple specifying the source is a file on disk.

: Never pass raw user input directly into Path.join or file paths. Validate that the requested file belongs to the user and stays within the intended directory. send_download elixir

Often, you don't want to save a file to disk just to send it. You might generate a CSV string or a PDF binary on the fly. send_download/3 handles this via the :binary, data tuple. : A tuple specifying the source is a file on disk

Scroll to Top