| View previous topic :: View next topic |
| Author |
Message |
origins
Joined: 26 Jan 2007 Posts: 2
|
Posted: Feb 01, 2007 1:09 pm Post subject: Optional file upload |
|
|
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 |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Feb 01, 2007 1:41 pm Post subject: |
|
|
No problems! Just comment one line in xupload.js:
| Code: | | if(NF==0){alert('Select at least one file to upload');return false;}; |
I think it's too rare situation for feature, but OK for quick hack  |
|
| Back to top |
|
 |
origins
Joined: 26 Jan 2007 Posts: 2
|
Posted: Feb 01, 2007 2:01 pm Post subject: |
|
|
| Thanks for the swift reply! |
|
| Back to top |
|
 |
|