By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

php upload file to a single directory problem

P: 32

I am working in digital signage application where user can upload image,flash and movie files .and later thay can view the uploaded files in digital LCD screen.

I am facing 1 issue.i able to store the uploaded files in 1 single directory in server.but i am afraid that how many files will be stored in 1 single directory.Bcz in the future,my upload files can reach say1 lakth.i am not sure whether a single directory can handle these much file.

I have 1 alternate solution.i planned to create 1 directory for each user account and store their upload files in their directory.Whether i can proceed with this logic.

If any one idea regarding 'YouTube'.how they are storing the uploaded video's.Is there any alternate solution available for my problem.

max upload file size for my application is 25 MB.

i am looking for some help from you guys.
Jun 13 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 404

I can not think of any restriction the php environment would impose on the number of files in a directory - I guess any phisical limits will be within the operating system file systems.. for example on ms windows platforms the following stands :

FAT16- 512
FAT32- 65,534 files or folders per folder
NTFS- 4,294,967,295

Maybe one of the NX guys can tag the post with their view..

Jun 13 '07 #2

Expert 2.5K+
P: 3,235
You shouldn't have any problem overwhelming a directory with files, however you may want to create a subdirectory system to keep files better organized.
Jun 13 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.