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 9, 3:39 AM
Unknown Object (File)
Fri, Nov 1, 4:10 AM
Unknown Object (File)
Sat, Oct 19, 9:07 AM
Unknown Object (File)
Sat, Oct 19, 9:07 AM
Unknown Object (File)
Sat, Oct 19, 9:07 AM
Unknown Object (File)
Sat, Oct 19, 9:05 AM
Unknown Object (File)
Oct 2 2024, 3:21 AM
Unknown Object (File)
Sep 27 2024, 12:33 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