Skip to content

[Spec] Change Image Pop‐up

Nguyen Truong Nhan edited this page Jul 17, 2023 · 2 revisions

CHANGE IMAGE POPUP

Summary

  • Users can select an image and save to change image here

Course Detail Page [User]

Site position Header -> My course
Screen changeimagepopup

Item descriptions

  • Item 1: Upload image label
  • Item 2: Image preview
  • Item 3: Save button
  • Item 4: Cancel operation
  • Item 5: Choose image error - this field is hidden by default

Operations

  • Click item 1 to navigate to file uploader, choose the image you wish
  • Item 2 will show the image, users can preview the image here
  • Click item 3 to save
  • Click item 4 to cancel, turn off the pop-up

Error

Error code Error Message Occur Condition Note
CHANGE_IMAGE_001 Wrong file type - jpg, png, jpeg only When users upload a file that has wrong file extension
CHANGE_IMAGE_002 File too large, file size lower than 4MB only When users upload a file that's too large