Skip to content

Conversation

@PhilLab
Copy link
Contributor

@PhilLab PhilLab commented Dec 29, 2025

  • Tests written, or not not needed

This streamlines the upload from files, e.g. from email attachments.
Closes #9215.

The approach via the listener mFileDisplayNameTransformer was chosen because this allows a potential extension to multiple files (with multiple input fields). Alternatively, ReceiveExternalFilesActivity#uploadFile() could've been used, which requires the storage to a temporary file first.

nextFocusForward and nextFocusDown are both needed to support navigation with the Tab key as well as the Enter key

This streamlines the upload from files, e.g. from email attachments.
Closes nextcloud#9215.
The approach via the listener mFileDisplayNameTransformer was chosen
because this allows a potential extension to multiple files (with multiple
input fields). Alternatively, ReceiveExternalFilesActivity#uploadFile()
could've been used, which requires the storage to a temporary file
first.

nextFocusForward and nextFocusDown are both needed to support navigation
with the Tab key as well as the Enter key

Signed-off-by: Philipp Hasper <vcs@hasper.info>
This streamlines the renaming and speeds up the process.

Signed-off-by: Philipp Hasper <vcs@hasper.info>
Making the Permission keys in OCFile public is a good change anyways - why
should these magic strings be private after all? This only invites
duplication and hinders maintenance.
.check(matches(withSelectedText(thirdFileName)))

/*
* TODO - NOMERGE: check that the new name is actually used during the upload!
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP, because

  1. this verification is missing
  2. The following lines uncover a bug in the implementation which needs to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change/choose name of files uploaded via sharing with Nextcloud app

1 participant