My question is, if I want to upload 4 files at a time do I néed to store at my database all 4 filesize type and path or can I get away with only storing the file name and upload them.

Thanks

That would depend on if you are using the same folder to store all your uploaded files in. If the path is going to remain permanent then, it would be sufficient to store just the filename in the DB. If the folders are different then you would need to store the file path.

As for filetype, you dont need to store it in the DB. You can get it from the filename if you need it later.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.