Files
odoo_source/addons
Alexandre Kühn e8567dadbd [FIX] web: upload same file twice in discuss composer
Before this commit, when clicking on "Attach files" in discuss
composer, then removing it, it was not possible to upload the same
file again.

This happens because file input of file uploader relies on `change`
from the input. The `input.value` contains the filepath, so if we
upload the exact same file without clearing the value, the value
will be unchanged and it won't trigger uploading as a result.

This commit fixes the issue by clearing the input just after
the file has been uploaded, so that we can upload the same file.

Cannot reproduce bug in QUnit tests because `inputFile` helper
programmatically always trigger "change" on input file.

closes odoo/odoo#117704

Signed-off-by: Luca Vitali <luvi@odoo.com>
2023-04-11 11:33:38 +02:00
..
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-04-04 13:35:18 +02:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-28 16:44:16 +02:00
2023-03-31 15:52:18 +02:00
2023-03-24 12:50:13 +01:00
2023-03-28 16:44:16 +02:00
2023-03-28 16:44:15 +02:00
2023-03-28 16:44:15 +02:00
2023-03-28 16:44:16 +02:00
2023-03-13 15:27:58 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-04-07 19:43:20 +02:00
2023-03-20 16:51:30 +01:00
2023-03-01 17:01:17 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-24 12:50:13 +01:00
2023-03-20 16:51:30 +01:00
2023-03-20 16:51:30 +01:00
2023-03-17 11:47:09 +01:00
2023-04-05 16:26:23 +02:00