Skip to content

The temp_path should be a relative path from each user home directory or virtual folder #2101

@nmarie276

Description

@nmarie276

Is your feature request related to a problem? Please describe.

Hello.

I'm discovering and benchmarking SFTPGo and, on my setup, I configured a medium sized disk for each users home directory and a very large disk for the teams virtual folder. Currently, the temp_pathis configured to point on a folder of the user "home directory". Technically, this behaviour :

  • allows to quickly move every uploaded file from temp_path to user home directory.
  • but needs to copy the file from the temp_path to the team virtual folder.

From the system / storage point of view, this is normal, but if the temp_path could be set to point on a relative path (for example the parent directory of each storage), this allows to always uploading files on the right target disk, avoiding a final file copy or avoiding to switching the upload_mode to the default 0.

Describe the solution you'd like

Ability to set the temp_pathto a relative path from each storage, meaning
If configured to ..:

  • The user home directory is /home/user/sftpgo
    • The temp_path is /home/user
  • The virtual folder is /export/share/sftpgo
    • The temp_path is /export/share
      If configured to .upload:
  • The user home directory is /home/user/sftpgo
    • The temp_path is /home/user/sftpgo/.upload
  • The virtual folder is /export/share/sftpgo
    • The temp_path is /export/share/sftpgo/.upload

Describe alternatives you've considered

Switching the upload_mode to the default 0.

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS), Professional user, 1 person business

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions