Skip to content

Commit 148867d

Browse files
Use fileType from Constants file
1 parent 5ae0b37 commit 148867d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/SubmissionService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function * createSubmission (authUser, files, entity) {
118118
const submissionId = uuid()
119119

120120
if (files && files.submission) {
121-
const pFileType = entity.fileType || 'zip' // File type parameter
121+
const pFileType = entity.fileType || fileType // File type parameter
122122
const uFileType = fileTypeFinder(files.submission.data).ext // File type of uploaded file
123123
if (pFileType !== uFileType){
124124
throw new errors.HttpStatusError(400, `fileType parameter doesn't match the type of the uploaded file`)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy