Skip to content

UI - Relax Document Upload Accept Type Restrictions for New Applications #27134

Closed

Description

@arlentees

As an immediate fix to help alleviate call volumes, applicants should be able to upload photos (jpeg) as a supporting document for Host and Strata Hotels applications.

  • Input type="file" to remain the same
  • Accepted file types and validation to allow for jpeg (.jpeg and .jpg)
  • Continue to restrict all other formats
  • No change with file upload max size
  • Design changes to be addressed in a different story
  • New hint text "File must be a PDF, jpeg, or jpg. Maximum 10 MB."
  • File selection should work with native mobile capabilities with regards to camera, gallery, files (see mdn example for proof of concept)

Validation and malware scanning is out of scope of this ticket.

Activity

  1. changed the title [-]Relax Document Upload Validation[/-] [+]UI - Relax Document Upload Accept Type Restrictions[/+] on Apr 10, 2025
  2. dimak1 commented on Apr 23, 2025

    @dimak1
    Collaborator

    @arlentees @HimaniTanwarGov this probably should be in the Sprint Backlog

  3. arlentees commented on Apr 23, 2025

    @arlentees
    Author

    A good example of how to simply accept images and allow mobile devices to choose the input app can be found here: https://mdn.github.io/learning-area/html/forms/file-examples/file-with-accept.html - barebones html with no javascript required

  4. arlentees commented on Apr 23, 2025

    @arlentees
    Author

    @dimak1 let's see how other stories size up tomorrow first, thanks!

  5. dimak1 commented on Apr 23, 2025

    @dimak1
    Collaborator

    @arlentees in the description, nothing is mentioned about mobile?

  6. self-assigned this
    on Apr 23, 2025
  7. dimak1 commented on Apr 23, 2025

    @dimak1
    Collaborator

    @andyyanggov is there a Figma for this? I'm interested in the content updates in particular.
    Eg. and other places

    Screenshot 2025-04-23 at 14.25.45.png

  8. dimak1 commented on Apr 23, 2025

    @dimak1
    Collaborator

    Increased estimate due to additional scope:

    • Support of mobile devices
    • Content updates
  9. andyyanggov commented on Apr 23, 2025

    @andyyanggov

    @dimak1 How did you trigger that error modal? I thought you just couldn't select anything other than PDFs to upload (currently)?

  10. dimak1 commented on Apr 23, 2025

    @dimak1
    Collaborator

    @andyyanggov in my local dev env I can do all kinds of things. I'm not sure how to trigger this officially, it popped up when I was doing development.

  11. andyyanggov commented on Apr 23, 2025

    @andyyanggov

    @dimak1 I see. In PROD, users can't select invalid file types, so the only content update I can think of is the hint text: "File must be a PDF, jpeg, or jpg. Maximum 10 MB."

    Screenshot 2025-04-23 at 4.41.35 PM.png

  12. dimak1 commented on Apr 24, 2025

    @dimak1
    Collaborator

    @andyyanggov thanks, i'll update the hint text only

  13. dimak1 commented on Apr 24, 2025

    @dimak1
    Collaborator

    @andyyanggov if you would like to have a preview, here is a link: https://strr-hosts-dev--pr-698-piun36ta.web.app/

  14. andyyanggov commented on Apr 24, 2025

    @andyyanggov

    @dimak1 Thanks, looks good to me.

  15. dimak1 commented on Apr 24, 2025

    @dimak1
    Collaborator

    This is how file/photo picker will look on mobile devices.

    IMG_4821.jpeg

  16. dimak1 commented on Apr 24, 2025

    @dimak1
    Collaborator

    @Apt766525 ready for QA in Test env. Host v1.2.9, Strata v1.1.11

  17. Apt766525 commented on Apr 24, 2025

    @Apt766525

    @dimak1 Verified for TEST in Host and Strata:
    Host:
    image.png
    Strata:
    image.png

    Mobile view:
    Short-Term Rental Strata-Titled Hotel or Motel Application.jpeg

  18. dimak1 commented on Apr 24, 2025

    @dimak1
    Collaborator

    @Apt766525 thanks for testing, looks great. Were you able to view the images as an Examiner?

  19. Apt766525 commented on Apr 24, 2025

    @Apt766525

    @dimak1 Yes looks good. Thanks

  20. victorc-bcgov commented on Apr 28, 2025

    @victorc-bcgov

    Verified that .jpg and .jpeg files can be uploaded using document upload widget.

  21. changed the title [-]UI - Relax Document Upload Accept Type Restrictions[/-] [+]UI - Relax Document Upload Accept Type Restrictions for During New Applications[/+] on Apr 28, 2025
  22. changed the title [-]UI - Relax Document Upload Accept Type Restrictions for During New Applications[/-] [+]UI - Relax Document Upload Accept Type Restrictions[/+] on Apr 28, 2025
  23. changed the title [-]UI - Relax Document Upload Accept Type Restrictions[/-] [+]UI - Relax Document Upload Accept Type Restrictions for New Applications[/+] on Apr 28, 2025
  24. dimak1 commented on May 1, 2025

    @dimak1
    Collaborator

    There is an issue with viewing Images as Examiner. Not sure how this passed QA @Apt766525

  25. Apt766525 commented on May 1, 2025

    @Apt766525

    That is weird. Dint see any issue when i had tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions