MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / put_file_upload

Function put_file_upload

pywebio/pin.py:242–250  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

240
241
242def 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

Callers

nothing calls this directly

Calls 3

file_uploadFunction · 0.90
check_dom_name_valueFunction · 0.85
_pin_outputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…