Lecture 27
College of Idaho
CSCI 2025 - Winter 2026
fileInputfileInput(inputId, label, ...): Creates a file upload control.?fileInput.input$uploadname: Original filename (e.g., “data.csv”).size: Size in bytes.type: MIME type (don’t usually need to worry about this).datapath: Temporary path where the file is saved on the server.datapath is temporary. Read the data from there immediately.app.R or server.R):downloadButtondownloadButton(outputId, label): A button to initiate a download.downloadLink(outputId, label): A link to initiate a download.downloadHandlerdownloadHandler() NOT render*().filename: A function that returns the filename (string).content: A function that takes a file path argument and writes content to it.fileInput().input$id (dataframe w/ datapath).downloadButton().downloadHandler(filename, content).