git4school / git4school-visu

Git4School, a dashboard for supporting teacher interventions in Software Engineering courses
https://git4school.firebaseapp.com/
Apache License 2.0
2 stars 3 forks source link

Reread button doesn't work well #27

Closed F0urchette closed 3 years ago

F0urchette commented 3 years ago

Description

After editing the file, the reread button doesn't work and consider the file as invalid even if it is valid

Steps to reproduce

Actual result

The file is considered invalid

Expected result

The file is considered valid and is read

Hints

The Blob of the file previously submitted is no longer valid because the file has changed in the meantime. The FileReader that takes this Blob as a parameter cannot read the file

F0urchette commented 3 years ago

I don't see any alternative to fix this problem because Javascript doesn't have access to the computer's file system. The user is therefore forced to upload his file again.

This implies that it is possible to upload the same file twice in a row (which is not currently possible)