# UnifiedFiler v1.9.7-fix4 Notes

## Upload input change handling fix

This fix resolves a regression where clicking the FileExplorer Upload button opened the browser file picker, but selecting files did not start the upload. The issue affected AppStorage and Google Drive because it was in the shared FileExplorer upload input handler, not in a specific storage adapter.

### Root cause

The hidden `<input type="file">` change handler stored `this.files` and then immediately cleared the input value before the upload pipeline consumed the files. In some browsers the `FileList` is tied to the input value, so clearing the input first can make the later upload call receive an empty list.

### Changes

- Snapshot the selected `FileList` into a normal JavaScript array before clearing the file input.
- Add `pendingUploadTarget` so the asynchronous file chooser keeps the intended upload destination without mutating the current view state.
- Keep the existing frontend-only Google Drive upload flow: Google Identity Services + OAuth token + Drive API v3 + Fetch API.

### Compatibility

No public API changes. Existing `Upload` toolbar/context command behavior is preserved.
