Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: ashsimmonds - syyskuu 16, 2007, 12:03:27 IP

Otsikko: attachment subdirectories
Kirjoitti: ashsimmonds - syyskuu 16, 2007, 12:03:27 IP
i'm trying to do some maintenance on my attachments, however the FTP limit on files is 2000 in a directory, after that the default setting is to truncate the results.  as far as i'm aware, this is a server setting, and many server admins will be unwilling to lift this number as it opens them to easier DOS attacks.

given that each attachment is prepended with a number, would it not be logical to put these attachments into subdirectories which make them easier to browse by the owner?
Otsikko: Re: attachment subdirectories
Kirjoitti: espybro - marraskuu 15, 2007, 07:34:41 IP
This is a serious problem.

I had to change YaBBSM to create subdirectories (in the directory "attachments") automatically for each year, month and day of insertion attach. The code is very simple and improves backup time.

I am evaluating migration from YaBBSM to SMF and I can not do without a solution to this problem.  :-[
Otsikko: Re: attachment subdirectories
Kirjoitti: vbgamer45 - marraskuu 16, 2007, 09:10:28 IP
I agree some changes need to be made to the attachment system for people who have large amount of files.