bugfixes for uploading resources
Merge pull request #29 from ChiSamurai/master

bugfixes for uploading resources