FIX: Changed Content Type From Static mp4 To Input
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m18s

This commit is contained in:
FahdShalhoub
2026-08-16 23:56:21 +03:00
parent f26ea98b52
commit 4b719f712d
5 changed files with 104 additions and 35 deletions
+7 -3
View File
@@ -88,7 +88,7 @@
},
"/api/videos/presign": {
"post": {
"description": "Step 1 of the upload flow. Returns a short-lived presigned S3 URL that the client PUTs the video file to directly, plus the storage key identifying it. Once the PUT succeeds, pass that same key to POST /api/videos to register the video and start transcoding. The file itself never passes through this API.",
"description": "Step 1 of the upload flow. Returns a short-lived presigned S3 URL that the client PUTs the video file to directly, plus the storage key identifying it. The submitted contentType is signed into that URL, so the PUT must carry an identical Content-Type header or S3 rejects it as a signature mismatch. Once the PUT succeeds, pass the key to POST /api/videos to register the video and start transcoding. The file itself never passes through this API.",
"consumes": [
"application/json"
],
@@ -101,7 +101,7 @@
"summary": "Create a presigned upload URL",
"parameters": [
{
"description": "Name and media type of the file to be uploaded. contentType must be a video/* type.",
"description": "Name and media type of the file to be uploaded. contentType must be exactly 'video/mp4' or 'video/quicktime'.",
"name": "request",
"in": "body",
"required": true,
@@ -124,7 +124,7 @@
}
},
"422": {
"description": "contentType was not a video/* media type",
"description": "contentType was not 'video/mp4' or 'video/quicktime'",
"schema": {
"$ref": "#/definitions/handlers.problemDetails"
}
@@ -224,6 +224,10 @@
"properties": {
"contentType": {
"type": "string",
"enum": [
"video/mp4",
"video/quicktime"
],
"example": "video/quicktime"
},
"fileName": {