add navagation handler while file upload

This commit is contained in:
smanylov
2025-12-25 13:19:32 +07:00
parent 87b8d68f41
commit e0420fa6d3
6 changed files with 136 additions and 35 deletions
@@ -1,9 +1,10 @@
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
import FilesTable from '@/app/ui/dashboard/files-table';
import PageTitle from '@/app/ui/page-title';
import UploadSectionFile from '@/app/components/upload-section-file';
const ALLOWED_EXTENSIONS: string[] = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
const FILE_TYPE = "VIDEO"
const FILE_TYPE = "AUDIO"
const MAX_SIZE = 1048576000;
export default function Page() {
@@ -12,6 +13,7 @@ export default function Page() {
<div>
<PageTitle title="audio-protection" />
<ProtectionSummary />
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={ALLOWED_EXTENSIONS} maxFileSize={MAX_SIZE} />
{/* <TestSection /> */}
<FilesTable />
</div>