Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Path duplication on temp files #11388

Open
teneburu opened this issue Feb 25, 2025 · 0 comments
Open

Path duplication on temp files #11388

teneburu opened this issue Feb 25, 2025 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@teneburu
Copy link

teneburu commented Feb 25, 2025

Describe the Bug

When using temporary files instead of RAM, the checkAndMakeDir incorrectly recreates the entire absolute path structure within the current working directory. Results in deeply nested duplicate directories like
/home/user/test-plugin/home/user/test-plugin/tmp/tmp-1-1740505100646

Link to the code that reproduces this issue

https://github.com/teneburu/payload-plugin-bigupload

Reproduction Steps

On new instance, add useTempFiles: true in upload in buildConfig. upload a file and bon appétit

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

payload: 3.24.0
  next: 15.1.5
  Node: 20.18.1
@teneburu teneburu added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Feb 25, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant