Hi everyone,
The Orthanc Explorer 2 plugin has been updated to version 1.15.0 featuring
Inbox-links; these are links that you can share with someone, allowing him to upload files to Orthanc for a period of time without being able to access the Orthanc content. This works together with the Authorization plugin that has also been updated to version 0.12.0 and the auth-service.
The Advanced storage plugin has also been updated to 0.3.2.
This release is available
Enjoy !
Alain
1 Like
Hi,
Thank you for this amazing work.
Do you think it would be helpful the token to include the username of the user creating the link, and when the link is used to upload it should label the study with the username?
I created an external app to do this and find it useful as I restrict the view of each user to their labels. Here is the block of code.
try:
touched_studies = get_touched_studies(token)
if not touched_studies:
fallback_id = request.form.get("study_id") or find_latest_study(headers, label=label)
if fallback_id:
touched_studies = [fallback_id]
for sid in touched_studies:
label_check_res = requests.get(f"http://orthanc:8042/studies/{sid}/labels", headers=headers)
if label_check_res.status_code == 200:
existing_labels = label_check_res.json()
if label not in existing_labels:
put_res = requests.put(
f"http://orthanc:8042/studies/{sid}/labels/{label}",
json={}, headers=headers
)
logger.info(f"Labeled study {sid} with label '{label}': {put_res.status_code} {put_res.text}")
else:
logger.info(f"Label '{label}' already present on study {sid}")
else:
logger.warning(f"Could not fetch existing labels for study {sid}: {label_check_res.status_code}")
clear_touched_studies(token)
Best
BTW, my app also takes the email address of the user from keycloak and sends an email notification that a upload occured.