tests, alternative for direct post/put
upload dir defaults to tmp