Skip to content

Commit

Permalink
the upload field is now added as plain text for the serverless version
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad1991 committed Dec 19, 2024
1 parent d7c9c05 commit cf4104d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deploy_serverless_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
files <- list.files("./bs/R", pattern = ".R", full.names = TRUE)
file.copy(files, "./app/", overwrite = TRUE)

file <- "./app/MainApp.R"
content <- readLines(file)
content <- gsub("uploadUIField",
"fileInput(\"file\", \"Choose CSV File\",\n accept = c(\n \"text/csv\",\n \"text/comma-separated-values,text/plain\",\n \".csv\"\n )\n ),\n",
content)
writeLines(content, file)
# file <- "./app/MainApp.R"
# content <- readLines(file)
# content <- gsub("uploadUIField",
# "fileInput(\"file\", \"Choose CSV File\",\n accept = c(\n \"text/csv\",\n \"text/comma-separated-values,text/plain\",\n \".csv\"\n )\n ),\n",
# content)
# writeLines(content, file)


# Copy www files from bs
Expand Down

0 comments on commit cf4104d

Please sign in to comment.