Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

This library needs both a File descriptor, like from the SD library and a Stream (Serial).

This handles X/Y-Modem both in 128 byte and 1k blocks and the CRC-16 extension.

http://peter.turczak.de/XModem.zip