Add functon getKey for request/file