Skip to content

Commit

Permalink
Link UI to max filesize limit (#145)
Browse files Browse the repository at this point in the history
* add project id as seems to be the norm now

* make the max file size link to the UI

* shunt notes into a persisting banner panel thing
  • Loading branch information
cjrace authored Jan 3, 2025
1 parent 6f8c749 commit c2a37d9
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 602 deletions.
1 change: 1 addition & 0 deletions dfe-published-data-qa.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: eec6f1e6-a03a-410a-b16d-2f41ff547e70

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down
7 changes: 6 additions & 1 deletion global.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Max file size ---------------------------------------------------------------------------------
options(shiny.maxRequestSize = 800 * 1024^2)
# Set the maximum size you want in megabytes, then this will convert it as needed to
# - Show the note in the UI 'notes' section
# - Set the max file upload size for the app
max_file_size_mb <- 900
max_file_size <- max_file_size_mb * 1e+6
options(shiny.maxRequestSize = max_file_size)

# Sanitising error messages (to avoid revealing anything untoward)
options(shiny.sanitize.errors = TRUE)
Expand Down
Loading

0 comments on commit c2a37d9

Please sign in to comment.