Got uploading functioning.

This should resolve #33.