Hi again,
As noted in
the link I shared last response, the uploads directory is typically found just below the root AtoM installation directory - so if you followed our recommended installation instructions, the uploads directory will be found at
/usr/share/nginx/atom/uploads.
If you are trying to move the
entire uploads directory, the easiest way to do this without requiring code changes would be to simply use the unix
mv command to move it wherever you'd like, and then
create a symlink to it from AtoM's root directory.
If your goal is to change how the uploads directory is organized and how the subdirectories are created, please note the original purpose I listed last time - to avoid collisions:
Meaning: if you change this, you will need to ensure that you are maintaining unique digital object filenames per repository in some other way to avoid issues.
If you want to change the way that file paths are generated for new uploads, then I believe the place to look will be the getAssetPath function in lib/model/QubitDigitalObject.php. Here it is in the current stable/2.6.x branch:
Specifically, I think
line 1900 is creating the hashed nested directory path:
- return '/'.QubitSetting::getByName('upload_dir')->__toString().'/r/'.$repoDir.'/'.$checksum[0].'/'.$checksum[1].'/'.$checksum[2].'/'.$checksum;
Good luck!