Click here to Skip to main content
15,921,716 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For my website I need to upload some files , but I want to upload more files then I prefer uploading by putting all files in a folder
Can anyone help me how to upload all files(folder) at a time using php

Thanks.....
Posted

Web languages are designed to have a degree of security to prevent website code from grabbing data from your system behind-the-scenes.

For example, php lets you upload a file from the client BUT the file must be picked explicitly by the user: you can't give a specific file-name as a target. This forces informing the user that someone's interested in his file system.

To upload an entire folder, wild-carding data, would be a horrendous security flaw.


.
 
Share this answer
 
Refer:
1. directory-upload-using-html-5-and-php[^]
2. php-folder-upload-code[^]
At the moment, it only works in chrome. For other browsers, it works like a normal file upload.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900