use '/api/tools' for upload URL instead of 'api/tools'