S
shapper
Hello,
On a application I am saving files to a few folders and for each one I
have a record on a database.
I rename most files so that the Id of the record becomes the filename.
But in some cases I don't.
For example, on my database should I have a column named Path which
could become:
Path = "Repository/Products/MyImage.jpg";
Or use two columns in the database as:
Path = "Repository/Products";
FileName = "MyImage.jpg"
I am just wondering how people usually do it.
I might be forget some issue that can favor one of the approaches.
Any advice is welcome.
Thanks,
Miguel
On a application I am saving files to a few folders and for each one I
have a record on a database.
I rename most files so that the Id of the record becomes the filename.
But in some cases I don't.
For example, on my database should I have a column named Path which
could become:
Path = "Repository/Products/MyImage.jpg";
Or use two columns in the database as:
Path = "Repository/Products";
FileName = "MyImage.jpg"
I am just wondering how people usually do it.
I might be forget some issue that can favor one of the approaches.
Any advice is welcome.
Thanks,
Miguel