I'm trying to add a file upload widget (uploadhelper.widget) to an
existing table. I added a new column to represent the field, adjusted
the column to use "uploadhelper" as its widget, and started tinkering
with the widget configuration.
It appeared to me that you could control what options get passed into
the widget by adding "name=value" pairs to the widget in the "Typical"
tab:
Options | path=pdf |
| umask=022 |
| value=_UI_VALUE |
"umask" and "value" seem to work, as the resulting HTML looks like this:
<input type="file" name="document_file" value="blahblahblah">
<input type="hidden" name="ui_upload_file_path:document_file" value="">
<input type="hidden" name="document_file" value="blahblahblah">
<input type="hidden" name="ui_upload_umask:document_file" value="022">
but as you can see, "path" is not set. I've tracked this into the
widget's code, and it appears "path" isn't passed in as an option.
Does anyone have advice here, or a successful use of the widget in the
admin?
--
Jeff Boes <><
jeff@endpoint.com
(269) 408-0811
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
existing table. I added a new column to represent the field, adjusted
the column to use "uploadhelper" as its widget, and started tinkering
with the widget configuration.
It appeared to me that you could control what options get passed into
the widget by adding "name=value" pairs to the widget in the "Typical"
tab:
Options | path=pdf |
| umask=022 |
| value=_UI_VALUE |
"umask" and "value" seem to work, as the resulting HTML looks like this:
<input type="file" name="document_file" value="blahblahblah">
<input type="hidden" name="ui_upload_file_path:document_file" value="">
<input type="hidden" name="document_file" value="blahblahblah">
<input type="hidden" name="ui_upload_umask:document_file" value="022">
but as you can see, "path" is not set. I've tracked this into the
widget's code, and it appears "path" isn't passed in as an option.
Does anyone have advice here, or a successful use of the widget in the
admin?
--
Jeff Boes <><
jeff@endpoint.com
(269) 408-0811
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users