We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4669b24 commit aec64baCopy full SHA for aec64ba
app/api/hooks/routes.py
@@ -43,7 +43,10 @@ async def receive_hook(
43
if hook_request.type == "post-finish":
44
ingest = Ingester(archive_base_path=settings.archive_dir, django_api=django_api)
45
upload_meta = get_upload_metadata(hook_request)
46
- upload_file = Path(hook_request.event.upload.storage["Path"]).relative_to(Path("/"))
+ # eg. /upload/12345/original_video.mp4
47
+ path_from_tus = Path(hook_request.event.upload.storage["Path"])
48
+ # eg. ./upload/12345/original_video.mp4
49
+ upload_file = settings.tusd_dir / path_from_tus.relative_to(Path("/upload"))
50
51
try:
52
metadata = await metadata_extractor.assert_compliance(upload_file)
0 commit comments