Hi,
What should I do if during upload with endpoint https://api.eu.kaltura.com//api_v3/service/uploadtoken/action/upload, “uploadedFileSize” in the response doesn’t increase? In the normal situation, this is what I got response’s “uploadedFileSize” = payload’s “resumeAt” + chunk size (in this case chunk size is 1024000)
Payload:
{“apiVersion”:“3.3.0”,“clientTag”:“dotnet:18-06-05”,“finalChunk”:false,“format”:2,“kalsig”:“512f5591052186ccaaba0b69f9e1193a”,“ks”:"*",“resume”:true,“resumeAt”:2048000.00000000000000000000,“uploadTokenId”:“0_d48cc4dda4661169d68f5ec6b417e7d9”}
Response:
<?xml version="1.0" encoding="utf-8"?>KalturaUploadToken0_d48cc4dda4661169d68f5ec6b417e7d9***h*****@s*******.com1Memory-Stream-Upload**3072000**1649076431164907643200.071901082992554But sometimes response’s “uploadedFileSize” is the same as payload’s “resumeAt” and if I ignore it and continue uploading with subsequent chunks, I’ll get error “Failed to match expected file size” during final chunk. Retrying the problematic chunk upload (before continuing to the next one) also returns the same response with wrong “uploadedFileSize”.
I use Kaltura .NET client from package manager (KalturaClient.dll) to call the API and I tried 1MB, 5MB, and 10MB for chunk size (the file sizes are vary between 20MB to 2GB+). The problem doesn’t always happen even with the same file and on the same computer. Our internet connection is 110Mbps (up) and stable.
Please advise.
2 posts - 2 participants