{"extended":{"hasExtended":true,"docs":"
// Send a PDF file to the user\nsendFile(file="wheels_tutorial_20081028_J657D6HX.pdf");\n\n// Send the same file but give the user a different name in the browser dialog window\nsendFile(file="wheels_tutorial_20081028_J657D6HX.pdf", name="Tutorial.pdf");\n\n// Send a file that is located outside of the web root\nsendFile(file="../../tutorials/wheels_tutorial_20081028_J657D6HX.pdf");"},"hint":"Sends a file to the user (from the files folder or a path relative to it by default).","returntype":"","slug":"sendfile","parameters":[{"default":"","required":"true","hint":"The file to send to the user.","name":"file","type":"string"},{"default":"","required":"false","hint":"The file name to show in the browser download dialog box.","name":"name","type":"string"},{"default":"","required":"false","hint":"The HTTP content type to deliver the file as.","name":"type","type":"string"},{"default":"attachment","required":"false","hint":"Set to inline to have the browser handle the opening of the file (possibly inline in the browser) or set to attachment to force a download dialog box.","name":"disposition","type":"string"},{"default":"","required":"false","hint":"Directory outside of the webroot where the file exists. Must be a full path.","name":"directory","type":"string"},{"default":"false","required":"false","hint":"Pass in true to delete the file on the server after sending it.","name":"deleteFile","type":"boolean"}],"name":"sendFile","availableIn":{},"tags":{"categoryClass":"","sectionClass":"","category":"","section":""}}