mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init and add video extension to editor/canva
This commit is contained in:
parent
8d0efdb93e
commit
9f916449c5
9 changed files with 163 additions and 10 deletions
|
|
@ -55,7 +55,8 @@ async def create_video_file(video_file: UploadFile, element_id: str):
|
|||
)
|
||||
|
||||
# create folder for element
|
||||
os.mkdir(f"content/uploads/files/videos/{element_id}")
|
||||
if not os.path.exists(f"content/uploads/files/videos/{element_id}"):
|
||||
os.mkdir(f"content/uploads/files/videos/{element_id}")
|
||||
|
||||
# upload file to server
|
||||
with open(f"content/uploads/files/videos/{element_id}/{file_id}.{file_format}", 'wb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue