invalid 'path' argument flexdashboard

Hi All,
I am just beginning to enjoy using shiny.
I am running a shiny app on R-studio cloud and want to upload the file from my local system. The file is a C++ file.

my first question: I am using the argument accept= .cpp. Is the the correct way to implement this ? code below:

fileInput("file1", "Choose text/cpp File",
                multiple = FALSE,
                accept = c("text/csv",".cpp"))

Second question:

i am saving the .cpp file on my local computer in a www folder. The file is being uploaded, however I get the error invalid path argument.

Can someone please suggest how to resolve this issue.

Thanks a lot for the support.


I was able to resolve this using $datapath.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.