Skip to content
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

Launch form: allow uploading local files as path parameters #3868

Open
rodichenko opened this issue Jan 20, 2025 · 0 comments
Open

Launch form: allow uploading local files as path parameters #3868

rodichenko opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
kind/enhancement New feature or request

Comments

@rodichenko
Copy link
Contributor

rodichenko commented Jan 20, 2025

Background
At the moment, there are 4 types of path parameters available for run: Input, Common, Path and Output; user can specify file/folder paths manually or select them from storage browser dialog. It would be useful to add an ability to upload local files for Input, Common and Path parameter types.

Approach
ui.launch.parameters preference should be added to configure "local files upload" feature. If enabled, uploaded files should be stored in predefined storage and corresponding paths should be saved to the parameter value.

ui.launch.parameters preference

ui.launch.parameters describes the "Parameters" section behavior of the launch form.

  • type: OBJECT
  • default value: not set
  • group: User Interface
  • visible: true
{
    "local_files": "..."
}

local_files definition

If specified (and not false), defines the rules for user-uploaded files.

Possible values: true / false / object:

  • upload_storage (string / number, optional, default value: {default_user_storage}): a storage to upload files; possible values - storage id (number/string), storage name (string), {default_user_storage} placeholder
  • upload_storage_path (string, optional, default value: upload/{user.userName}/{date}) - a path to upload files; see available placeholders below.

Each file will be uploaded to the {upload_storage_path} folder under <file_name>.<guid>.<file_extension> file name.

Supported placeholders for upload_storage_path parameter:

  • {user} / ${userName} / ${user.userName} - a user name
  • {date} - current date (YYYY-MM-DD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant