mirror of
https://github.com/flutter/holobooth.git
synced 2025-05-17 21:36:00 +08:00
feat: download video feature (#362)
* feat: adding download video feature * final adjustments and fixes * fix tests * fix tests * pr suggestions and UI improvements * PR suggestions * pr sggestions
This commit is contained in:
@ -50,7 +50,7 @@ describe('Download API', () => {
|
||||
|
||||
test('Invalid file extension returns 400', async () => {
|
||||
const req = Object.assign({}, baseReq, {
|
||||
path: 'wrong.gif',
|
||||
path: 'wrong.avi',
|
||||
});
|
||||
|
||||
const res = {
|
||||
|
@ -4,7 +4,7 @@ import * as path from 'path';
|
||||
|
||||
import { UPLOAD_PATH, ALLOWED_HOSTS } from '../config';
|
||||
|
||||
const VALID_VIDEO_EXT = [ '.mp4' ];
|
||||
const VALID_VIDEO_EXT = [ '.mp4', '.gif' ];
|
||||
|
||||
/**
|
||||
* Get the files and writes it on the response.
|
||||
|
Reference in New Issue
Block a user