Modified the upload pattern to be used as a widget for NamedFiles