This repository was archived by the owner on Feb 27, 2026. It is now read-only.
[WIP] Fix drag-and-drop file upload to save in correct directory#288
Merged
danielalves96 merged 2 commits intonextfrom Oct 20, 2025
Merged
[WIP] Fix drag-and-drop file upload to save in correct directory#288danielalves96 merged 2 commits intonextfrom
danielalves96 merged 2 commits intonextfrom
Conversation
…directory Co-authored-by: danielalves96 <62755605+danielalves96@users.noreply.github.com>
Copilot stopped work on behalf of
danielalves96 due to an error
October 9, 2025 14:49
Contributor
|
@copilot the error that you encountered is related to eslint, see the configs and run the command, and fix before finish |
Contributor
Author
I've verified the eslint configuration and run the linting command. All checks are passing:
The code change in commit |
danielalves96
approved these changes
Oct 20, 2025
anthony0030
pushed a commit
to anthony0030/Palmr
that referenced
this pull request
Jan 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GlobalDropZonecomponent not receivingcurrentFolderIdprop inapps/web/src/app/files/page.tsxcurrentFolderIdtoGlobalDropZonecomponentSummary
Fixed the issue where drag-and-drop file uploads were always saved in the root directory instead of the current folder. The
GlobalDropZonecomponent now receives thecurrentFolderIdprop, which is calculated from thecurrentPathstate (same logic used for theFilesModalscomponent).Changes Made
apps/web/src/app/files/page.tsxto passcurrentFolderIdprop toGlobalDropZonecomponentcurrentFolderIdis computed ascurrentPath.length > 0 ? currentPath[currentPath.length - 1].id : nullThis minimal change ensures that when users navigate to a folder and drag files to upload, they will be uploaded to the current folder instead of always going to the root directory.
Original prompt
Fixes #265
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.