Skip to content

fix: allow file request upload when part_file_in_storage=false - #62986

Open
salmart-dev wants to merge 1 commit into
masterfrom
fix/nickname-upload-from-root
Open

fix: allow file request upload when part_file_in_storage=false#62986
salmart-dev wants to merge 1 commit into
masterfrom
fix/nickname-upload-from-root

Conversation

@salmart-dev

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Setting the config value part_file_in_storage=false and trying to upload files in a file request, using local storage and providing a nickname always fail. The reason is that the storage wrapper fails to detect the case when the file gets uploaded in the root due to the configuration, failing the parent directory check and checking for the UPDATE permission instead of the CREATE one.

Note: I am not sure that the fix is correct, as the config exists to improve compatibility with some storages and uploading files in the root of the storage wrapper, rather than the root of the view, could still cause issues in certain cases.

TODO

  • ..

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The part_file_in_storage option being disabled, causes files to be
uploaded in the user's root, rather than in the final directory. This,
in combination with the use of upload nicknames, was not detected by the
patched check, causing uploads to check for the UPDATE permissions,
which is not granted for file requests, making all uploads always fail.

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev self-assigned this Aug 6, 2026
@salmart-dev salmart-dev added the bug label Aug 6, 2026
@salmart-dev
salmart-dev requested a review from a team as a code owner August 6, 2026 16:54
@salmart-dev salmart-dev added 3. to review Waiting for reviews 32-feedback labels Aug 6, 2026
@salmart-dev
salmart-dev requested review from Altahrim, icewind1991, leftybournes and provokateurin and removed request for a team August 6, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant