mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 05:03:39 +08:00
a2e0da16a7
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 -
|
||
---|---|---|
.. | ||
run-qunit.js | ||
smoke_test.js |