Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
desti Posted January 4, 2019 Posted January 4, 2019 HardCoded? In ACP-Storage Settings sets as .../.../uploads, but saved in uploads/emoticons/ and uploads/reactions/ If create new Storage methods with uploades/emot and uploads/react, save in uploads/emot/emoticons and uploads/react/reactions.
bfarber Posted January 7, 2019 Posted January 7, 2019 Yes, this is normal as I mentioned in another topic. When you set up file storage directories, think of those directories as base directories. The individual areas that store files may or may not create subdirectories underneath them (as you can see, emoticons and reactions both do, as do most other file storage methods).
desti Posted January 9, 2019 Author Posted January 9, 2019 On 1/7/2019 at 6:52 PM, bfarber said: Yes, this is normal No, this is not normal! I cannot think so :) If I see /home/user/forum/uploads/ near Reactions *, I understand it as a base directory. And if I want to store reactions files in superpuper directory, it has to be in /home/user/forum/uploads/superpuper, but not in /home/user/forum/uploads/superpuper/reactions/! Javascript, css, resource files too. Try to understand my idea: if U set that directory to default value and extend Storage Settings list for all types of file activity - it will be beautiful! You should not depend on hardcoded dirname, you just ask DB and get the necessary storage data. What prevents to code it, except the loved "as intended and leave"? And perhaps it will allow to fulfill my dream of storage for PM, personal storage for any application :)
hawksfan Posted January 19, 2019 Posted January 19, 2019 On 1/7/2019 at 7:52 AM, bfarber said: Yes, this is normal as I mentioned in another topic. When you set up file storage directories, think of those directories as base directories. The individual areas that store files may or may not create subdirectories underneath them (as you can see, emoticons and reactions both do, as do most other file storage methods). Is there a listing somewhere with which areas create subdirectories & which do not?
bfarber Posted January 21, 2019 Posted January 21, 2019 On 1/19/2019 at 12:32 AM, hawksfan said: Is there a listing somewhere with which areas create subdirectories & which do not? Quite a few (in fact, probably most) of the storage configurations create subdirectories. Attachments, for instance, create "monthly_YYYY_MM" subfolders, theme resources create "css_built_X" and "set_resources_X" subfolders, and javascript create "javascript_(area)" subfolders. I can't off the top of my head think of any areas that do not create subfolders (perhaps Pages Media, but then you usually create your own in the AdminCP in the media manager).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.