Get uploads actually working in phantomjs environment

This was tougher than it sounds.