我正在尝试在 https 上使用 Uppy 设置 tusd,但没有成功。它在 http 上运行良好。
这是我的 nginx conf 文件:
server {
listen 80;
listen[::]: 80;
server_name
DOMAIN.com
www.DOMAIN.com;
root / srv / users / DOMAIN / apps / DOMAIN / public;
access_log / srv / users / DOMAIN / log / DOMAIN / DOMAIN_nginx.access.log main;
error_log / srv / users / DOMAIN / log / DOMAIN / DOMAIN_nginx.error.log;
proxy_set_header Host $host;
proxy_set_header X - Real - IP $remote_addr;
proxy_set_header X - Forwarded - For $proxy_add_x_forwarded_for;
include / …Run Code Online (Sandbox Code Playgroud) 我正在使用Laravel开发一个网站,并且使用tus-js-client将文件直接上传到Vimeo,而无需通过我的服务器。上传工作完美。
但是,假设上传达到 44%,然后用户刷新了浏览器...据我了解,当用户再次开始上传同一文件时,它应该从 44% 继续上传..但这不会发生,它会开始从一开始就。
我认为发生这种情况是因为当我向 Vimeo 发送 API 请求以获取 upload_link (步骤1 )时,每次用户刷新页面时,它都会给我一个新的upload_link 。
// Upload process start
var self = this;
// Send request to server to get (upload.upload_link) from Vimeo API (Step 1)
var uploadEndPoint = self.getUploadEndPoint();
// Start uploading ( Step 2 )
self.uploader = new tus.Upload(file, {
uploadUrl: uploadEndPoint,
retryDelays: [0, 1000, 3000, 5000],
metadata: {
filename: file.name,
filetype: file.type
},
resume: true,
uploadSize: file.size,
onError: function(error) { …Run Code Online (Sandbox Code Playgroud) 我正在从https://github.com/ankitpokhrel/tus-php/wiki/Laravel-&-Lumen-Integration设置 tus.io php 服务器
但我坚持将路线::任何从 laravel 转换为流明路线
Route::any('/tus/{any?}', function () {
$response = app('tus-server')->serve();
return $response->send();
})->where('any', '.*');
Run Code Online (Sandbox Code Playgroud) 我正在使用 tusd 库将文件直接上传到 Go 中的 S3。它似乎可以正常工作,但是 tusd 上传两个文件:.info 元数据文件和 .bin 实际内容文件。由于某种原因,我的代码仅上传信息文件。该文档很难导航,所以也许我错过了某个地方的设置