Skip to content

[Bug]: #805

@jukeyjin

Description

@jukeyjin

问题描述 | Current Behavior

Uploading uppercase .MOV files will result in an error

重现步骤 | Steps to Reproduce

打开软件
Upload Local Files
选中 .MOV文件

错误日志 | Error Logs

streamlit.errors.StreamlitAPIException: Invalid file extension: .mov. Allowed: ['.mp4', '.mov', '.avi', '.flv', '.mkv', '.jpg', '.jpeg', '.png', '.mpeg4']

Traceback:
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 121, in exec_func_with_error_handling
result = func()
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 599, in code_to_exec
self._session_state.on_script_will_rerun(
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\safe_session_state.py", line 68, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\session_state.py", line 558, in on_script_will_rerun
self._call_callbacks()
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\session_state.py", line 566, in _call_callbacks
changed_widget_ids = [
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\session_state.py", line 567, in
wid for wid in self._new_widget_state if self._widget_changed(wid)
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\session_state.py", line 579, in _widget_changed
new_value = self._new_widget_state.get(widget_id)
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib_collections_abc.py", line 824, in get
return self[key]
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\runtime\state\session_state.py", line 128, in getitem
deserialized = metadata.deserializer(value, metadata.id)
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\elements\widgets\file_uploader.py", line 115, in deserialize
enforce_filename_restriction(file.name, self.allowed_types)
File "E:\MoneyPrinterTurbo-Portable-Windows-1.2.6\lib\python\lib\site-packages\streamlit\elements\lib\file_uploader_utils.py", line 65, in enforce_filename_restriction

Python 版本 | Python Version

3.20

操作系统 | Operating System

win11

MoneyPrinterTurbo 版本 | Version

1.2.6

补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions