PyWebIO icon indicating copy to clipboard operation
PyWebIO copied to clipboard

no pin widget for `file_upload()

Open Jzhenli opened this issue 3 years ago • 1 comments

if it's possible to add pin widget for `file_upload()?

Jzhenli avatar Aug 01 '22 06:08 Jzhenli

For performance reason, there is no pin widget for file_upload(). A workaround is output a buttion and use file_upload() in the button's click callback.

I find that the workaround can't handle the case where file upload in a popup, I will consider to add pin.put_file_upload .

wang0618 avatar Aug 08 '22 12:08 wang0618

"file_upload in a popup" is a good function, looking forward to it.

czhcooper avatar Mar 15 '23 09:03 czhcooper

pin.put_file_upload() is supported in pywebio dev version, and will be released to stable version soon.

dev doc: https://pywebio.readthedocs.io/en/dev/pin.html#pywebio.pin.put_file_upload

wang0618 avatar Mar 17 '23 13:03 wang0618

Thanks! This is awesome!

czhcooper avatar Mar 20 '23 09:03 czhcooper