improve curl upload method
Merge branch 'develop'