fix: job page layout

This commit is contained in:
Jannat Patel
2024-06-21 18:41:10 +05:30
parent 7d3dc8df90
commit ed739b25e2
9 changed files with 85 additions and 54 deletions

View File

@@ -129,7 +129,7 @@ const addFile = (data) => {
const validateFile = (file) => {
let extension = file.name.split('.').pop().toLowerCase()
if (!['jpg', 'jpeg', 'png', 'mp4', 'mov', 'mp3'].includes(extension)) {
if (!['jpg', 'jpeg', 'png', 'mp4', 'mov', 'mp3', 'pdf'].includes(extension)) {
return 'Only image and video files are allowed.'
}
}