Delete a BIN_FILE after upload

66 views
Skip to first unread message

dpla...@gmail.com

unread,
Mar 14, 2025, 5:32:50 AMMar 14
to QATrack+
Hi, 

I have a working file upload test that analyses an image, makes the results available to other tests, and also creates a PNG version of the uploaded DICOM file. 

I would like to be able to programmatically delete the original DICOM file from the QATrack+ server in the test code. Can anyone point me in the right direction? 

Thanks, 

David

Cody Crewson

unread,
Mar 14, 2025, 1:54:35 PMMar 14
to QATrack+
I don't believe that's a current feature, but I will add it to the todo list. 

Cody Crewson

unread,
Mar 14, 2025, 1:57:59 PMMar 14
to QATrack+
For tracking purposes I have added it as an issue to the GitHub page

tbe...@gmail.com

unread,
Mar 17, 2025, 6:06:54 AMMar 17
to QATrack+
Hi David,

technically you could delete the files from the file system, they are saved inside ~/web/qatrackplus/qatrack/media/uploads/testinstance/$id/$filename but only after you saved the files/submitted the testlist. This would brake the link to the file and hopefully not much more. The path is accessible via the API. That is probably not what you want.

What I am implementing at our site at the moment is replacing the Upload Tests with DICOM Q/R directly from our Aria DB. With this method the files are only stored temporary on the disk and are deleted when the python instance is closed. Maybe that would be a solution four you too.

My code for the DICOM Q/R with some instructions is hosted on github: pynetdicom_wrapper@github

regards
Thomas

dpla...@gmail.com

unread,
Apr 5, 2025, 9:43:26 AMApr 5
to QATrack+
Many thanks for your reply, and for adding it as a future issue.

dpla...@gmail.com

unread,
Apr 5, 2025, 9:43:48 AMApr 5
to QATrack+
Thanks for the reply - I will take a look at your code.
Reply all
Reply to author
Forward
0 new messages