Setting up media directories correctly.