Fix for new curl file upload method.

http://stackoverflow.com/a/17033048/372215
Updated formating

updated the specified formatting.
Hope this helps.
Merge pull request #123 from Artistan/master

Fix for new curl file upload method.