Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isFileExtensionValid #570

Open
rahunak opened this issue Nov 15, 2024 · 0 comments
Open

isFileExtensionValid #570

rahunak opened this issue Nov 15, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@rahunak
Copy link

rahunak commented Nov 15, 2024

Issue

When I try to load any document i get:

VM244880:69 Uncaught TypeError: Cannot read properties of null (reading 'value') at Object.isFileExtensionValid (<anonymous>:69:125) at HTMLInputElement.checkFileExtension (<anonymous>:72:177) at HTMLInputElement.n (sugar_grp1_yui.js?v=_D0LAIgLpXzajxe-cvofUw:5:26943)

Possible Fix

The error is in isFileExtensionValid function.
on line:
var docType = document.getElementById('doc_type').value;
cause docuement havent' element with id 'doc_type'

Steps to Reproduce the Issue

try to load any document, and see console logs.

Context

No response

Version

7.14.5

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

MySQL

Operating System and Version

Ubuntu 24

@rahunak rahunak added the Type: Bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant