Skip to content

Commit

Permalink
Fix OpenTTD#227: limit the upload chunk-size, or Cloudflare will bloc…
Browse files Browse the repository at this point in the history
…k the upload.
  • Loading branch information
frosch123 committed Oct 3, 2023
1 parent d141d57 commit c6e050b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webclient/static/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function start_next_upload() {
endpoint: tus_url,
retryDelays: [0, 1000, 3000, 5000],
removeFingerprintOnSuccess: true,
chunkSize: 50 * 1024 * 1024, /* Cloudflare limits to 100 MB */
metadata: {
"upload-token": upload_token,
filename: upload_file.name
Expand Down

0 comments on commit c6e050b

Please sign in to comment.