Connecting Tech Pros Worldwide Forums | Help | Site Map

php upload file to a single directory problem

Member
 
Join Date: Aug 2006
Posts: 32
#1: Jun 13 '07
Hi,

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.
A.suresh

Purple's Avatar
Moderator
 
Join Date: May 2007
Location: UK - North West
Posts: 385
#2: Jun 13 '07

re: php upload file to a single directory problem


Hi,

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..

Purple
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#3: Jun 13 '07

re: php upload file to a single directory problem


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.
Reply