sergix44 / XBackBone

A lightweight file manager with full ShareX support and more
https://xbackbone.app
GNU Affero General Public License v3.0
993 stars 81 forks source link

storage_path change user code? #538

Closed kubilay-dev closed 1 year ago

kubilay-dev commented 1 year ago

hey, so currently im adding a function to change the user_code in the profile settings. i added the input and everything but im now stuck on the backend functions (im pretty new to php). so i managed to change the user_code in the users tab and also rename the folder in the storage. but i noticed that the old links weren't working anymore and that is because of the storage_path which is not getting changed in the uploads tab because it also has the user_code included in itself.

can somebody help me on a request of changing every user_code in a storage_path from the user?

i know what i need to do but i don't know how to implement it.

this is the code so far (i can't do code brackets because of the ``:

https://hastebin.de/jeqovolafa.php

thanks.