The Wayback Machine - https://web.archive.org/web/20210811103633/https://github.com/discourse/discourse/tree/main/test
Skip to content
main
Switch branches/tags
discourse/test/
discourse/test/

Latest commit

We want to remove completely our custom modal for uploading files in composer and directly trigger the system file picker.

This PR makes it happen. The fix is pretty simple since we already weren't using our custom modal on mobile. We just need to start using the same hidden <input type="file"> that we already use on mobile.

It seems to be pretty tricky to test opening a system modal so I haven't added new tests. We already have other tests for file uploading though. We directly trigger jquery-File-Upload plugin hooks in those tests - https://github.com/discourse/discourse/blob/3dda926cb22751beced12b427dd14657b53b6dfe/app/assets/javascripts/discourse/tests/acceptance/composer-attachment-test.js#L89.
a2e0da1 2

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time