-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script gui file upload #6096
Script gui file upload #6096
Conversation
The upload is not specifically for file annotation. |
This would work for an image file too. |
I mean an image to import not an image as an attachment |
OK, so after reading https://forum.image.sc/t/file-browser-in-omero-script-gui/28117 more carefully I see what's wanted is a UI for browsing a drive mounted on the server. |
Tested and works fine. |
|
@jburel We have no way for the script to tell the UI script dialog about which files are supported. |
Ported to ome/omero-web#128 |
See #6095
Currently, some scripts that require a File use the convention of a parameter named
File_Annotation
to allow the user to choose a previously createdFileAnnotation ID
.This PR adds a File chooser input to parameter named
File_Annotation
which allows users to pick a local file from the Run-Script dialog in webclient. This will be used to create a File Annotation in OMERO and the ID will be passed to theFile_Annotation
script parameter.To test:
File_Annotation
parameter, such as "Populate Metadata" (https://github.com/ome/scripts/blob/develop/omero/import_scripts/Populate_Metadata.py)FileAnnotation
is created in OMERO (not linked to anything) and the ID is passed to theFile_Annotation
script parameter (so the script should work as expected)