0

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

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by sudeepjd
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.