How to disable Drag and Drop Upload widget based on conditional logic