ChrisTERiS
Well-known member
Hello,
I'm coding a script to move data from a custom PHP script to xenForo 2.1.6. So far so good, everything works fine, except something which appears to be a limitation.
In details. I'm moving photos to internal_data/attachments/0/ and a thumbnail to data/attachments/0. The problem is that when I reach 9999 files, nothing else save to those directories. I'm not getting any error (have display_errors on), the rest thread data are saving to database, the procedure continues without any break.
So my question is, if there is a limitation on the amount of the files that I can store there. Maybe I need to count the files and every 9999 files to create a new directory like internal_data/attachments/1/ etc? If yes then do I need to update anything to table xf_attachment_data? I can see a field file_path there. Maybe I need to add 1 or 2 etc corresponding to the new folder in internal_data/attachments/ ?
Thank you
Chris
I'm coding a script to move data from a custom PHP script to xenForo 2.1.6. So far so good, everything works fine, except something which appears to be a limitation.
In details. I'm moving photos to internal_data/attachments/0/ and a thumbnail to data/attachments/0. The problem is that when I reach 9999 files, nothing else save to those directories. I'm not getting any error (have display_errors on), the rest thread data are saving to database, the procedure continues without any break.
So my question is, if there is a limitation on the amount of the files that I can store there. Maybe I need to count the files and every 9999 files to create a new directory like internal_data/attachments/1/ etc? If yes then do I need to update anything to table xf_attachment_data? I can see a field file_path there. Maybe I need to add 1 or 2 etc corresponding to the new folder in internal_data/attachments/ ?
Thank you
Chris