I recently had a colonoscopy and everything looks good except for one thing. If medical stuff is TMI, don't read on.
I have internal hemerrhoids and the doc says that I need to increase my fiber and hydration to fix the problem. The easy way is to use a prescription stool softener and also to add something like Metamucil or psyllium husk powder for the added 5 grams of fiber per meal. The more task intensive way is to eat lots of food with at least 5 grams of fiber, plus increase intake of water. I'm doing a combination, but I hope to eventually be handling it with only food.
Some foods are easy because they have long been known to help with constipation. An example would be prunes and fresh apples (leaving the skin on). Pulses like lentils are also a good source, as is oatmeal.
In the area of fresh fruits and veg I was surprised to learn that raspberries and blackberries are good sources. Pears, too...who knew? Yams and potatoes with the skin on are good. The list goes on, but it's been fun to know that corn on the cob, which is in season right now and delicious just steamed and eaten, is helping my gut in multiple ways.
Do you have a favorite food source of fiber?

