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
F3389510: D8315.id28121.diff
Fri, Nov 29, 7:25 PM
Unknown Object (File)
Tue, Nov 26, 10:46 AM
Unknown Object (File)
Tue, Nov 26, 10:41 AM
Unknown Object (File)
Tue, Nov 26, 8:29 AM
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
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable