Back to top

Uploaded content not visible in device directory

Last updated October 18th, 2023

Categories:

Environment

  • Knox Configure
  • Content management
  • Devices running Android 11 and lower

Overview

By default, content will upload to a Content folder inside the Download directory.

After uploading content to a device, users might encounter the issue where the content isn’t visible on the device and the Content directory can’t be found. Attempting to set the content folder name to a different name also fails.

Cause

When the upload is performed, a FileNotFoundException is thrown. The following error is added to the device logs:

FileNotFoundException: /storage/emulated/0/Contents/
Primary directory Contents not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]

Setting the content directory name to any name other than the allowed directory names will fail and result in the issue.

Workaround

To view the uploaded contents, set the content folder name to Documents or Download.

Is this page helpful?