The channel.sendImage and channel.sendFile methods make it easy to upload files.
channel.sendImage
channel.sendFile