Source: As worded by Indian Railways, Government of India
Your reserved ticket for a lower class can be upgraded to a higher class for the same train and date, subject to availability of accommodation. The upgrading of accommodation can be done only once on collection of fresh reservation charges and the fare difference. This can also be done during the journey by approaching the TTE.