FIX query in file_detail method (issue #2)