removed var_dump
added handling for public file access via files_sharing link