Not required FILE UPLOAD is requried
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Not required FILE UPLOAD is requried
Good Morning Pablo
I have a form located at https://www.iwantwireless.ca/careers.php
I have a FILE UPLOAD to be sent as an attachment to the form results.
For the FILE UPLOAD > Validate ... I do not have the "Data required (the user must specify a filename)" checked - with the intent that is optional.
But ... the form will not send unless a file is attached. If no file is attached then I am sent to the error page.
I have a form located at https://www.iwantwireless.ca/careers.php
I have a FILE UPLOAD to be sent as an attachment to the form results.
For the FILE UPLOAD > Validate ... I do not have the "Data required (the user must specify a filename)" checked - with the intent that is optional.
But ... the form will not send unless a file is attached. If no file is attached then I am sent to the error page.
Re: Not required FILE UPLOAD is requried
If you add validation to the File Upload then input is required.
Re: Not required FILE UPLOAD is requried
Just a wild (rose) guess here, since I can't see what options you have configured, but I noticed that you are enforcing the type of docs which are acceptable for upload, like "doc, docx, pdf, etc", so perhaps the form now "requires" one of these??
Re: Not required FILE UPLOAD is requried
Hi Pablo ... does MGD4me's response make since ... because I am limiting the type of file formats this creates the required status?
Re: Not required FILE UPLOAD is requried
Correctbecause I am limiting the type of file formats this creates the required status?
Re: Not required FILE UPLOAD is requried
Hi Pablo ... would like to revisit this topic.
Is there a way to not force the form user to add an upload file if I have set the types to for example: docx, doc, pdf, png, jpg ...etc
I really don't want an "open" upload field as I suspect this opens up .exe, batch files and possible malware extensions.
On a side note... I use Coffee Cup Web Builder form software and I can predetermine and limit types, without forcing a file to be uploaded.
My intent is have a form that IF the person wants to send an image along with his comments he can .. but again want to limit of what can file type can be sent?
Thanks ... the reason I am moving slowly over to this form structure is because I really like hCaptha.
Thoughts?
Is there a way to not force the form user to add an upload file if I have set the types to for example: docx, doc, pdf, png, jpg ...etc
I really don't want an "open" upload field as I suspect this opens up .exe, batch files and possible malware extensions.
On a side note... I use Coffee Cup Web Builder form software and I can predetermine and limit types, without forcing a file to be uploaded.
My intent is have a form that IF the person wants to send an image along with his comments he can .. but again want to limit of what can file type can be sent?
Thanks ... the reason I am moving slowly over to this form structure is because I really like hCaptha.
Thoughts?
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Not required FILE UPLOAD is requried
From reading Pablos reply.... this is my understanding if you add a validation then you are telling the form that the user must fill this in so it will get processed and sent. If left blank then you will get a error due to it is not filled. Solution remove the validation you have added.
Re: Not required FILE UPLOAD is requried
Sorry, there is no option to make the file input not required if validation is enabled.
Re: Not required FILE UPLOAD is requried
Hi Pablo
That was my understanding also ... I just find that it limits the use of the UPLOAD file field.
My input was to maybe revisit this and see if there was a possible work-around... or even a future update to address this.
Question... Would you be concerned about someone uploading .exe files or malware files?... if I choose to leave the field available, with no extension limits so that the user may or may not need to send a file with his request ... am I opening my self to security breaches?
I specifically have a Powder Coating company that has a form for questions ... and sometime people are asking for a ball park price and want to add a picture of the part they need powder coating ... not all the time, just some of the time ... thus, the dilemma
Just my 2 cents from the peanut gallery!
That was my understanding also ... I just find that it limits the use of the UPLOAD file field.
My input was to maybe revisit this and see if there was a possible work-around... or even a future update to address this.
Question... Would you be concerned about someone uploading .exe files or malware files?... if I choose to leave the field available, with no extension limits so that the user may or may not need to send a file with his request ... am I opening my self to security breaches?
I specifically have a Powder Coating company that has a form for questions ... and sometime people are asking for a ball park price and want to add a picture of the part they need powder coating ... not all the time, just some of the time ... thus, the dilemma
Just my 2 cents from the peanut gallery!
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Not required FILE UPLOAD is requried
What you need to note is, there is nothing to stop a malicious user changing the file extension (renaming) it from .bat or .exe to say .docx, .pdf etc etc. And not to scare you it is also possible to attach/embed malicious code to a image, this is why the uploading of images directly to the forum is disabled and a link to it asked instead.
Re: Not required FILE UPLOAD is requried
Makes sense… thank for the info
Re: Not required FILE UPLOAD is requried
There is currently no workaround, but I will investigate if this can be implemented somehow.My input was to maybe revisit this and see if there was a possible work-around.
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Not required FILE UPLOAD is requried
Pablo not sure if this would work or conflict with the validation. But thought I would just share.
See reply from JΛ̊KE and Kaalis
https://forum.jquery.com/topic/disable- ... pty-values
See reply from JΛ̊KE and Kaalis
https://forum.jquery.com/topic/disable- ... pty-values