We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae806f7 commit e113b8cCopy full SHA for e113b8c
recording/recording_handler.go
@@ -78,6 +78,12 @@ func SyncSttRecordingHandler(c *gin.Context) {
78
79
80
// save with original file extension
81
+ err = os.MkdirAll("tmp", os.ModePerm)
82
+ if err != nil {
83
+ c.JSON(http.StatusInternalServerError, gin.H{"error": "Failed to create temp directory"})
84
+ return
85
+ }
86
+
87
ext := filepath.Ext(fileHeader.Filename)
88
originalPath := fmt.Sprintf("tmp/%d%s", time.Now().Unix(), ext)
89
0 commit comments