Japt, 7 66 4 bytes
å+ x
Explanation
å+ x Implicit: input = digit list
å+ Cumulative reduce by addition. Gives the sum of each prefix.
x Sum.
Old solution:
å+ ¬¬x
Explanation
å+ ¬¬x Implicit: input = string
å+ Cumulative reduce by concatenation. Gives the list of prefixes.
¬ Join into a single string of digits.
¬ Split back into digits.
x Sum.
Implicit: output result of last expression