Added check if file is in a subdirectory of MEDIA_ROOT