cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

File Upload #421

Closed sithuhlaing closed 3 years ago

sithuhlaing commented 7 years ago

I just found that fileupload for pdf, but there are validation which is come from type which is application/pdf but actual is applications/pdf. I don't know how to change the code.

cbleek commented 7 years ago

just notice, that my answer per mail didn't reach this issue...


Fileupload is configured in:

https://github.com/cross-solution/YAWIK/blob/develop/module/Applications/config/applications.forms.global.php.dist

Copy this file into the config/autoload directory and name it applications.forms.global.php

Regards,

Carsten

cbleek commented 7 years ago

Ah, you mean the default value is incorrect. Default value is defined in

https://github.com/cross-solution/YAWIK/blob/develop/module/Applications/src/Applications/Options/ModuleOptions.php#L38

Yes, I think application/pdf is the right value. Feel free to send a pull request.