Handle uploads on API post

Finally!
Merge pull request #4 from SliceOLife/api-fix

Handle uploads on API post