You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UI - Relax Document Upload Accept Type Restrictions for New Applications #27134
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.
@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."
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
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
changed the title [-]UI - Relax Document Upload Accept Type Restrictions[/-][+]UI - Relax Document Upload Accept Type Restrictions for New Applications[/+]on Apr 28, 2025
Activity
[-]Relax Document Upload Validation[/-][+]UI - Relax Document Upload Accept Type Restrictions[/+]dimak1 commentedon Apr 23, 2025
@arlentees @HimaniTanwarGov this probably should be in the Sprint Backlog
arlentees commentedon Apr 23, 2025
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
arlentees commentedon Apr 23, 2025
@dimak1 let's see how other stories size up tomorrow first, thanks!
dimak1 commentedon Apr 23, 2025
@arlentees in the description, nothing is mentioned about mobile?
dimak1 commentedon Apr 23, 2025
@andyyanggov is there a Figma for this? I'm interested in the content updates in particular.
Eg. and other places
dimak1 commentedon Apr 23, 2025
Increased estimate due to additional scope:
andyyanggov commentedon Apr 23, 2025
@dimak1 How did you trigger that error modal? I thought you just couldn't select anything other than PDFs to upload (currently)?
dimak1 commentedon Apr 23, 2025
@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.
andyyanggov commentedon Apr 23, 2025
@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."
dimak1 commentedon Apr 24, 2025
@andyyanggov thanks, i'll update the hint text only
dimak1 commentedon Apr 24, 2025
@andyyanggov if you would like to have a preview, here is a link: https://strr-hosts-dev--pr-698-piun36ta.web.app/
andyyanggov commentedon Apr 24, 2025
@dimak1 Thanks, looks good to me.
dimak1 commentedon Apr 24, 2025
This is how file/photo picker will look on mobile devices.
dimak1 commentedon Apr 24, 2025
@Apt766525 ready for QA in Test env. Host v1.2.9, Strata v1.1.11
Apt766525 commentedon Apr 24, 2025
@dimak1 Verified for TEST in Host and Strata:


Host:
Strata:
Mobile view:

dimak1 commentedon Apr 24, 2025
@Apt766525 thanks for testing, looks great. Were you able to view the images as an Examiner?
Apt766525 commentedon Apr 24, 2025
@dimak1 Yes looks good. Thanks
victorc-bcgov commentedon Apr 28, 2025
Verified that .jpg and .jpeg files can be uploaded using document upload widget.
[-]UI - Relax Document Upload Accept Type Restrictions[/-][+]UI - Relax Document Upload Accept Type Restrictions for During New Applications[/+][-]UI - Relax Document Upload Accept Type Restrictions for During New Applications[/-][+]UI - Relax Document Upload Accept Type Restrictions[/+][-]UI - Relax Document Upload Accept Type Restrictions[/-][+]UI - Relax Document Upload Accept Type Restrictions for New Applications[/+]dimak1 commentedon May 1, 2025
There is an issue with viewing Images as Examiner. Not sure how this passed QA @Apt766525
Apt766525 commentedon May 1, 2025
That is weird. Dint see any issue when i had tested.