I have a job application form that allows a user to upload a resume. The resume must be in DOC, DOCX, or PDF format. I have the OnSubmit area, I have the Upload Files action with the following:
Enabled: Yes
Files: app_resume_upload:doc-docx-pdf
Upload Path: JOOMLA_PATH/formuploads/career_apps/
File Type Error Message: Sorry, Your uploaded file type is not allowed. We can only accept files in Microsoft Word (.doc, .docx) or Adobe PDF (.pdf) formats. If you do not have one of these, please copy and paste your resume into the box on the form.
When I test the form with an appropriate file type, it works perfectly. When I upload a file with an incorrect file type (say, a WPS document), the form submits and there is no error message displayed. No file is uploaded to the server, and the verification email does not contain the file, so that is working fine.
Do I need to add some sort of action to stop the submission and display the file type error?
Enabled: Yes
Files: app_resume_upload:doc-docx-pdf
Upload Path: JOOMLA_PATH/formuploads/career_apps/
File Type Error Message: Sorry, Your uploaded file type is not allowed. We can only accept files in Microsoft Word (.doc, .docx) or Adobe PDF (.pdf) formats. If you do not have one of these, please copy and paste your resume into the box on the form.
When I test the form with an appropriate file type, it works perfectly. When I upload a file with an incorrect file type (say, a WPS document), the form submits and there is no error message displayed. No file is uploaded to the server, and the verification email does not contain the file, so that is working fine.
Do I need to add some sort of action to stop the submission and display the file type error?
Hi Rick,
You need an Event Loop action in the On Fail event of the File Upload action. The default settings should be good.
Bob
You need an Event Loop action in the On Fail event of the File Upload action. The default settings should be good.
Bob
Thanks, Bob. I have always built forms under the Easy Form Wizard. I have stopped that in favor of the regular Form Wizard because of the flexibility. It's just going to be a process, so I apologize in advance! 😶
This topic is locked and no more replies can be posted.