While browsing or downloading an artifact from a remote repository, the Artifactory will not list/download artifacts with a content length more than 1 MB and this is the default value.
Below is an example message that gets displayed when trying to download an artifact whose content- length is more than 1MB from a remote repository.
"message" : "Failed to retrieve directory listing from https://github.com/prometheus-community/windows_exporter/releases/download/v0.21.0/windows_exporter-0.21.0-amd64.msi/. Response Content-Length of 10146.8 KB exceeds max of 1024 KB."
In order to increase this default parameter, we need to add the below property to the artifactory.system.properties which is located under $JFROG_HOME/artifactory/var/etc/artifactory directory.
artifactory.repo.remote.browsing.content.length.limit.KB=<new maximum content length in Kbytes>
We need to restart Artifactory service so that the above change will be reflected in the configuration.