Skip to main content

View Post [edit]

Poster: Wesha Date: Apr 3, 2024 8:04pm
Forum: forums Subject: Automatically derived files are not deleted upon source file changes!

Assume I uploaded PICTURE.JPG. The derive script has automatically generated PICTURE_thumb.JPG

Now when I create some directory and move PICTURE.JPG into it, the derived PICTURE_thumb.JPG is not deleted. If I delete PICTURE.JPG file, PICTURE_thumb.JPG is not deleted either. If I re-derive the item, PICTURE_thumb.JPG is not deleted either, again! In short, I'm stuck with this _thumb file now and there's no way to get rid of it manually. HELP?...

(Item in question: https://archive.org/details/narr8-2-3-51)

Reply [edit]

Poster: Wesha Date: Apr 3, 2024 8:18pm
Forum: forums Subject: Re: Automatically derived files are not deleted upon source file changes!

P.S. I figured a non-standard way of handling this. I noticed that deletion is performed by POSTing to "https://archive.org/edit.php" with the query "cmd=delete&file=root%2Ffilr_name.ext" — Well, I opened the browser debugger window and started repeating that query with undesired file names. And boom, with this bit of black magic, it accomplished the desired result. But I would prefer to NOT have to jump through hoops :(

Reply [edit]

Poster: Giulia322 Date: Apr 10, 2024 10:34pm
Forum: forums Subject: Re: Automatically derived files are not deleted upon source file changes!

This worked for me but I must note that you must also put the query not only as https://archive.org/edit.php?cmd=delete&file=root%2Ffilename.ext but also put the cmd=delete&file=root%2Ffilename.ext in the message body for it to succeed.

Reply [edit]

Poster: Wesha Date: Apr 11, 2024 12:13am
Forum: forums Subject: Re: Automatically derived files are not deleted upon source file changes!

Yes that's what I did, but I would prefer that there's some way to do so through the UI rather than the guts of the system...

Reply [edit]

Poster: Giulia322 Date: Apr 11, 2024 12:19am
Forum: forums Subject: Re: Automatically derived files are not deleted upon source file changes!

Oh no, absolutely. I ran into the same issue as you. I was just making a note for anyone else who stumbles upon this post.