# Temporary files (TMPxxxx.tmp) not deleted after Mp3tag "Cannot write file" error message is dismissed

**URL:** https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [December 13, 2022, 3:44pm UTC](https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387 "2022-12-13T15:44:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [December 13, 2022, 3:44pm UTC](https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387/1 "2022-12-13T15:44:09Z")

</div>

I found this behaviour when trying to edit the M4A file found [here](https://community.mp3tag.de/t/cant-open-file-for-writing/59349/5).

It seems that Mp3tag creates a temporary file of an M4A file being edited.  
Maybe that happens all the time, for all file types.

When Mp3tag cannot open a file for editing, an error message is displayed that asks if I want to retry.  
 !['cannot write' error message](https://community.mp3tag.de/uploads/default/original/2X/9/90c218b894b0eab9ea8ec78182c54c98aa34023f.jpeg)

After clicking "No", the program returns to the "Ready" state.  
However, a tempory file (eg. TMPB239.tmp) remains, beside the file being edited.

For me, that is undesired behaviour.  
I expected the temporary file to be deleted.  
Maybe it is a bug.

Windows 10 Home (64 bit), Mp3tag v3.18f (32 bit)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [December 13, 2022, 3:54pm UTC](https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387/2 "2022-12-13T15:54:20Z")

</div>

Here is a thread that claims that the bug has been fixed:

> [@\[F\] Leftover .tmp file if media file could not be opened for writing](https://community.mp3tag.de/t/f-leftover-tmp-file-if-media-file-could-not-be-opened-for-writing/12001):
>
> If mp3tag for some reason fails do save tag data to a media file, a temporary copy of the media file is left and not deleted. To reproduce: run mp3tag in a given directory open a media file in this directory with a second application, f.e. winamp or ultraedit change the tag data of the file when attempting to save the tag data, a modal dialog will popup informing you that the file cannot be opened for writing choose ok and open the directory in the browser -\> You'll find an additional tmp fi…

So, perhaps something new ...

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 26, 2024, 8:43am UTC](https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387/3 "2024-04-26T08:43:02Z")

</div>

I've reproduced it locally and have just fixed it with [Mp3tag v3.25a](https://community.mp3tag.de/t/455).

Thank you for reporting (and for patience)!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [May 26, 2024, 8:43am UTC](https://community.mp3tag.de/t/temporary-files-tmpxxxx-tmp-not-deleted-after-mp3tag-cannot-write-file-error-message-is-dismissed/59387/4 "2024-05-26T08:43:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
