Warning: "This file is binary or is too large to be displayed"
This warning may be shown when you're viewing revisions or reviews containing large or binary files. If you must see all of the changes, the limit can be raised.
Solution
To raise the limit in the ZIP installation:
Stop Upsource:
<upsource_home>/bin/upsource.sh stop
Open the configuration file upsource-frontend.jvmoptions located in the <upsource_home>/conf/upsource-frontend directory. If the file does not exist, create it.
Add the following lines to that file:
-Dfrontend.view.filesize.limit=XXXX -Dfrontend.diff.filesize.limit=YYYYwhere XXXX is the maximum file size (2000000 by default) and YYYY is the maximum length of the diff (1000 lines by default).
Save and close the file.
To raise the limit in the Docker installation::
Stop Upsource:
docker exec <containerId> stop
Open the configuration file upsource-frontend.jvmoptions. The file is located in the <path to conf directory>/conf/upsource-frontend/. If the file does not exist, create it.
Add the following lines to that file:
-Dfrontend.view.filesize.limit=XXXX -Dfrontend.diff.filesize.limit=YYYYwhere XXXX is the maximum file size (2000000 by default) and YYYY is the maximum length of the diff (1000 lines by default).
Save and close the file.
Start Upsource:
docker start <containerId>
.