Output a file uploading widget. Refer to: `pywebio.input.file_upload()`
(name: str, *, label: str = '', accept: Union[List, str] = None, placeholder: str = 'Choose file',
multiple: bool = False, max_size: Union[int, str] = 0, max_total_size: Union[int, str] = 0,
help_text: str = None, scope: str = None, position: int = OutputPosition.BOTTOM)
| 240 | |
| 241 | |
| 242 | def put_file_upload(name: str, *, label: str = '', accept: Union[List, str] = None, placeholder: str = 'Choose file', |
| 243 | multiple: bool = False, max_size: Union[int, str] = 0, max_total_size: Union[int, str] = 0, |
| 244 | help_text: str = None, scope: str = None, position: int = OutputPosition.BOTTOM) -> Output: |
| 245 | """Output a file uploading widget. Refer to: `pywebio.input.file_upload()`""" |
| 246 | from pywebio.input import file_upload |
| 247 | check_dom_name_value(name, 'pin `name`') |
| 248 | single_input_return = file_upload(label=label, accept=accept, name=name, placeholder=placeholder, multiple=multiple, |
| 249 | max_size=max_size, max_total_size=max_total_size, help_text=help_text) |
| 250 | return _pin_output(single_input_return, scope, position) |
| 251 | |
| 252 | |
| 253 | @chose_impl |
nothing calls this directly
no test coverage detected
searching dependent graphs…