Hi
Just wondering if anyone has implemented an optional file upload feature rather than the current mandatory requirement. I'm integrating xupload (pro) into an update routine where the user may not necessarily want to upload a new file to the record. (There are other fields on the form).
It would great if Required could be enabled/disabled in a hidden field config or something - Feature request!
Many thanks
XUpload - Optional file upload
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
No problems! Just comment one line in xupload.js:
I think it's too rare situation for feature, but OK for quick hack
Code: Select all
if(NF==0){alert('Select at least one file to upload');return false;};