Is it Possible to Upload a folder of Images directly into the Server
Hello everyone,
I have many folders containing many images. I want to make a function where I can directly upload the folder and save folder in my server with all the images, then I want to save the folder name and Image paths in my data table.
hello @Nihir thank you for the reply.
I know about the multiple Image upload. I can do that. But problem the that I have so many folders So it's gonna take me around 3 to 4 days. Because I have to statically change folder name in my code after every upload. So uploading folder directly seemed easy to me. :)
@Akash_kushwaha I don't think the folder name may be passed on by the browser
What you probably need to do is zip the folder structure, upload it as a single file, then unzip it and iterate through the contents creating folders and files
You could zip the folders up and write a function to unzip after upload, go into the directory after it has been unzipped and loop through the images to add them to the data table.
Or as @snapey stated, upload via FTP then write a function to loop through the images in the folder and write them to your database.
Might not be the best route to take, but would work.