added method that gets the file attributes from the user