Skip to content

Commit 57a66df

Browse files
committed
fixed MAX_UPLOAD_SIZE expose to JS fallback value
1 parent b72d3a4 commit 57a66df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/layouts/_expose.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
Object.defineProperty(QPixel, 'MAX_UPLOAD_SIZE', {
2323
configurable: false,
24-
value: <%= SiteSetting['MaxRequestBodySize'] %> ?? 2 * 1024 * 1024,
24+
value: <%= SiteSetting['MaxRequestBodySize'].presence || 2 * 1024 * 1024 %>,
2525
writable: false,
2626
});
2727
</script>

0 commit comments

Comments
 (0)