You can try to send the file to your server, then your server will make a POST request which includes both API key and the file to the target server.
(您可以尝试将文件发送到服务器,然后服务器将向POST请求发出请求,其中包括API密钥和文件到目标服务器。)
If you are using jquery:
(如果您使用的是jquery:)
var formData = new FormData();
formData.append('file', $('[type=file]')[0].files[0]);
$.ajax({
type: 'POST',
url: '/your-current-server',
data: formData,
processData: false,
contentType: false
}).done(() => console.log('upload completed'))
.fail(e => console.log('upload failed:', e));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…