Welcome Guest, Not a member yet? Register   Sign In
File Upload Directory Limit..??
#1

[eluser]santosh[/eluser]
Hi All,

I just want to upload files & dump them to a server filesystem. I am just trying to understand how many files can u dump to a single directory , is there any limit on the total numbers, if so, how to handle this situation. I think this is very typical in large apps. How do u spread ur files to more than one servers' filesystem. I googled, but i didnt get the info i needed. Any help will be appreciated..!

PS: I am new to PHP/CI. If my question is unlclear, let me know that, i will try to put it
in some easy way.


Thanks,
Santosh.
#2

[eluser]coolfactor[/eluser]
How many files are you talking? Thousands? Tens of thousands?

I personally organize uploaded files into subfolders. For example, I'll take the first letter of the file (lowercased) and create a folder for it..

Code:
/upload_1/13300.jpg
/upload_a/apples.jpg
/upload_t/Timeless_Visions.jpg

Your upload code just needs to create the upload folder if it doesn't exist. This technique would distribute you files into separate directories.
#3

[eluser]santosh[/eluser]
Thanks, CF..!




Theme © iAndrew 2016 - Forum software by © MyBB