file upload develop

This commit is contained in:
smanylov
2025-12-24 15:41:06 +07:00
parent c38b7ee558
commit 8058be42c1
8 changed files with 235 additions and 84 deletions
+12 -11
View File
@@ -1,21 +1,22 @@
import ProtectedFilesTable from '@/app/ui/marking-page/protected-files-table';
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
import TestSection from '@/app/ui/marking-page/test-section';
import PageTitle from '@/app/ui/page-title';
import UploadSectionFile from '@/app/components/upload-section-file';
import { useTranslations } from 'next-intl';
import FilesTable from '@/app/ui/dashboard/files-table';
import { FileExtension } from '@/app/actions/definitions';
import { getAllowedFilesExtensions } from '@/app/actions/file-upload';
const ALLOWED_EXTENSIONS: FileExtension[] = ['jpg', 'jpeg', 'png', 'gif', 'bmp'];
const FILE_TYPE = "IMAGE"
export default async function Page() {
/* const allowedFilesExtensions = await getAllowedFilesExtensions(FILE_TYPE);
console.log(allowedFilesExtensions); */
export default function Page() {
const t = useTranslations('Global');
return (
<div>
<div className="page-title">
<h1>
{t('image-protection')}
</h1>
</div>
<PageTitle title="image-protection" />
<ProtectionSummary />
<UploadSectionFile fileType="IMAGE"/>
<UploadSectionFile fileType={FILE_TYPE} allowedExtensions={ALLOWED_EXTENSIONS} />
{/* <TestSection /> */}
<FilesTable />
{/* <ProtectedFilesTable /> */}