Handle uploads on API post

File uploads are now handled by a universal handleUpload method, furthermore file uploads now work with the issue creation API endpoint.