Create upload.php

Some tests (e.g. FormData tests) rely on the upload.php helper file