Page MenuHomePhabricator

[web] Add "file" `input` to `imageMenuItem` in `EditUserAvatarMenu`
ClosedPublic

Authored by atul on Jun 26 2023, 1:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 2:08 PM
Unknown Object (File)
Sat, Nov 23, 2:08 PM
Unknown Object (File)
Sat, Nov 23, 2:08 PM
Unknown Object (File)
Sat, Nov 23, 2:08 PM
Unknown Object (File)
Sat, Nov 23, 1:14 PM
Unknown Object (File)
Sun, Nov 17, 8:30 AM
Unknown Object (File)
Sat, Nov 9, 3:39 AM
Unknown Object (File)
Fri, Nov 1, 4:10 AM
Subscribers

Details

Summary

We add hidden input to EditUserAvatarMenu, and have browser file selection dialog appear when imageMenuItem is clicked.

For now we just log the selected file.

Initially we'll kick off image upload/avatar update as soon as an image is selected, but it will probably make sense to introduce some sort of ImageSelectionModal once the most basic flow is complete.


Depends on D8313

Test Plan

Logs selected file info as expected:

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D8315 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage