We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc8dee commit a6d02b9Copy full SHA for a6d02b9
modules/ROOT/pages/7.6.0-release-notes.adoc
@@ -296,7 +296,7 @@ tinymce.init({
296
input.type = 'file'; // Set the input type to "file" for uploading files
297
input.accept = 'image/*'; // Restrict the input to accept only image files
298
input.onchange = (e) => { // Add an event listener to handle the file selection event
299
- const file = (e.target as HTMLInputElement).files?.[0]; // Get the selected file from the input element
+ const file = (e.target).files?.[0]; // Get the selected file from the input element
300
if (file) {
301
console.log(file);
302
}
0 commit comments