我正在开发一个项目,需要将大文件(通常为1-10GB,可能是多个文件)上传到Azure blob存储。
当没有启用分块时,精细上传器正在工作,但显然上传像这样的大文件并不理想。虽然当启用分块时,每个块都会成功上传,但阻止列表会失败。
我不确定是什么导致这种情况,因为这是由FineUploader处理的。 这是我的代码。
$(document).ready(function () {
button = document.getElementById('#file-picker-button');
uploader = new qq.azure.FineUploaderBasic({
debug: true,
button: button,
chunking: {
mandatory: true,
enabled: true,
minFileSize: 1,
partsize: 4000000,
concurrent: {
enabled: true
}
},
retry: {
enableAuto: true,
maxAutoAttempts: 1
},
cors: {
expected: true
},
request: {
endpoint: 'https://{{ ACCOUNT_NAME }}.blob.core.windows.net/{{ BLOB_CONTAINER_NAME }}',
containerUrl: 'https://{{ ACCOUNT_NAME }}.blob.core.windows.net/{{ BLOB_CONTAINER_NAME }}'
},
signature: {
endpoint: '/shared-access-signature'
},
uploadSuccess: {
endpoint: '/success',
params: {
dir_name: '{{ trip_name }}'
}
}
});
});
答案 0 :(得分:0)
事实证明问题不在于FineUploader,而在于我们的服务器。
当我发现它是什么时,我可以添加更多细节。