app.R
/src/shiny-server/Upload
The output of a file selection
When one or several files are chosen the result is made
available to the shinyServer instance. In order for it to get the
formatting expected of a filepath it must first be fed into
parseFilePaths()
after which the output matches the formatting of
that returned by shiny's own fileInput widget.
The output of a folder selection
When a folder is selected the position of the folder is sent to
the server and can be formatted with parseDirPath()
to reflect a
standard path string as returned by e.g. choose.dir()
on windows
systems.
The output of a file save
When a file is "saved" the name, path, and type are sent back to
the server and formatted with parseSavePath()
. The
format after parsing is very similar to a file choice, except
size information is omitted (often the file doesn't exist yet)
and type is now available (provided that filetype information has
been sent from the server).