create the function {get file by ID instead by hash}