# How to access an external file in-game

**URL:** <https://forums.unrealengine.com/t/how-to-access-an-external-file-in-game/62203>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [April 26, 2016, 9:53am UTC](https://forums.unrealengine.com/t/how-to-access-an-external-file-in-game/62203 "2016-04-26T09:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [April 26, 2016, 7:21pm UTC](https://forums.unrealengine.com/t/how-to-access-an-external-file-in-game/62203/2 "2016-04-26T19:21:46Z")

</div>

Hi Mosel3y,

If you look in AndroidFile.cpp in PathToAndroidPaths(), there are checks for valid paths to allow:

```auto

			if ((AllowLocal && AndroidPath.StartsWith(TEXT("/"))) ||
				AndroidPath.StartsWith(GFontPathBase) ||
				AndroidPath.StartsWith(TEXT("/system/etc/")) ||
				AndroidPath.StartsWith(GExternalFilePath.Left(AndroidPath.Len())))
			{
				// Absolute paths are only local.
				LocalPath = AndroidPath;
				AssetPath = AndroidPath;
			}

```

Just change this to if (AllowLocal) and it should now give you access to any file path you have permission to access.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-access-an-external-file-in-game/62203)._
