You can define your own attachments with this configuration:
// Dictionary of symbolic names for the user-defined types of[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l548)
// attached files. Each entry must map an unique string to an unique[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l549)
// number between 1024 and 65535. Optionally, a second argument can[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l550)
// provided to specify a MIME content type for the attachment.[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l551)
"UserContentType" : {[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l552)
// "sample" : 1024[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l553)
// "sample2" : [ 1025, "application/pdf" ][](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l554)
},
However:
orthanc will not keep the filename → you would have to store it in a metadata and implement some logic on your side to rebuild the filename
they should be displayed in Orthanc Explorer but not yet in Orthanc Explorer 2
Evidently, the Patient ID must be adapted to your patient, as well as the “test.dcm” and “test.pickle” files. Furthermore, the “1024” is the identifier of the attachment, and it could be anything between 1024 and 65535. As Alain indicated, you can use the “UserContentType” configuration option of Orthanc to give a symbolic name to this integer identifier.