Modifying assignment details such as instructions, due dates, or attached resources.
Hello Mahmud Esad ÇITAK,
I tested the same scenario on my side and observed similar behavior. After uploading the same file name several times, Teams added a number to the new copy. In my test, the file name reached number 3.
Teams Assignments appears to retain each file already attached to the assignment, even before the work is turned in. When another file with the same name is uploaded, Teams treats it as a separate file and adds a number to avoid a naming conflict rather than automatically replacing the existing attachment.
Therefore, this appears to be expected duplicate-file handling rather than an indication that the original file has been lost. Your workaround of attaching the file from OneDrive is also a useful approach.
Regarding your concern about later edits, when a file is uploaded from the computer, Teams creates a separate copy for the assignment. Changes made afterward to the original local file do not automatically update the copy already attached to the assignment. The same precaution should be taken with a file selected from OneDrive. If you attach a file from OneDrive as a separate copy, later changes to the original OneDrive file should not affect the version already attached to the assignment.
However, if you submit or share a OneDrive sharing link instead of attaching a copied file, the link continues to point to the original OneDrive file. Any later edits made to that original file may therefore also be visible to anyone who opens the shared link, depending on the sharing permissions.
For a final assignment submission, the safest approach is to attach the completed file directly or make sure no further changes are made to the linked OneDrive file after submission. Alternatively, you can open and edit the file shown directly under My work.
For your reference: Turn in an assignment in Microsoft Teams | Microsoft Support
Your original local or OneDrive file should remain unchanged. The numbered files represent separate copies attached to the assignment, so editing the original file afterward should not change a different version that has already been submitted.
I hope this clarifies how Teams handles repeated uploads and helps you avoid submitting the wrong version.
Kind regards,
If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in documentation to enable e-mail notifications if you want to receive the related email notification for this thread.