To supplement goldPseudo's answer: Both eating and drinking while standing has generally been considered permissible, although makruh tanzihi or khilaf al-awla by some. That is because while some reports are against it however a group of the Sahaba have narrated its legality, for example:
عن ابن عمر قال: كنا على عهد رسول الله صلى الله عليه وسلم نأكل ونحن نمشي ونشرب ونحن قيام
Ibn Umar said: At the time of the Messenger of Allah (ﷺ) we used to eat while walking, and drink while standing up.
— Sunan Ibn Majah , Sahih Ibn Hibban, Jami at-Tirmidhi
أتى علي رضي الله عنه على باب الرحبة فشرب قائما فقال: إن ناسا يكره أحدهم أن يشرب وهو قائم، وإني رأيت النبي صلى الله عليه وسلم فعل كما رأيتموني فعلت
Ali came to the gate of the courtyard (of the Mosque) and drank (water) while he was standing and said, "Some people dislike to drink while standing, but I saw the Prophet (ﷺ) doing (drinking water) as you have seen me doing now."
— Sahih Bukhari
عن ابن عباس قال: شرب النبي صلى الله عليه وسلم قائما من زمزم
Narrated Ibn Abbas: The Prophet (ﷺ) drank Zamzam while standing.
— Sahih Bukhari
عن عائشة قالت: رأيت رسول الله صلى الله عليه وسلم يشرب قائما وقاعدا
Aishah said: I saw the Messenger of Allah (ﷺ) drink standing and sitting...
— Sunan an-Nasai
Similar athar have been reported about Umar, Uthman, Sa'd ibn Abi Waqqas, Abdullah ibn Zubair etc. (see Muwatta Malik).