Test for file uploading via POST to API