@Tom-Elliott said in Upload Task: Updating database... failed. FTP problems:
@zachu THe reason the path is specified (not allowing slashes) is because it can give access to other parts of the filesystem. This doesnāt mean it WILL happen, but from a security perspective whatās to ensure you donāt write a specific file or overwrite the root folder? I know thereās some other obfuscated methods of protection here, but letās just imagine, you decide to put the image path be be as /images/../../../../bin/init or /images/../../../../usr/bin/init or some other binary name.
While technically it shouldnāt be possible, with the wrong setup it is a possibility. Now your fog server will likely work for a while. Then start having some funny issues.
I perfectly understand why itās like this. I was more like toying with different ways to go around the problem I had. Iām ok with the way it works now.
The Wiki is perfectly accurate. You would, essentially, change the images location to go from /images to /images/newdisk. No where in the wiki article, from what Iāve skimmed through, would state that you are placing the image on the disk in the way you originally described. Changing the way move_upload is not quite that simple.
Oh right, I think I then read too far there between the lines. With the guide on the wiki articleās last lines, itās meant to move all your images under the ānewdiskā, not just one or part of them. I get it now š
Changing the way move_upload is not quite that simple.
Yeah, I glanced just quickly at the codebase there and realized that it isnāt just a minor change, but I think it is doable still. All the needed actions are moving (renaming) and deleting files and folders, just as it is done now. Now itās really simple and pretty when you can just move the whole directory instead of doing multiple actions to the files.
Would you accept a pull request of changing the move_upload process, if I find time to put it together? Iām not making any promises, but just thinking about it. Iāve never really contributed to an open source project but I might have the skills to put that one together. But if it fights the way you want it to work, then I wont bother š
I really thank you for your time!
Btw, I settled for a process that I just move the image files to the dedicated HDD always after upload. Itāll do now, since itās only temporary š