S
shapper
Hello,
I am creating a simple CMS for a web site.
The web site will hold many documents and for that I created Documents
table which holds information on each document such as:
Title, Description, Author, Url, ...
I would need to create the following functionalities:
1. Create a document and upload its file
2. Edit a document information and maybe change the file associated
with it.
3. Delete a document record (info) and the file associated to it.
How should I do this?
Should I separate the create a document and upload a document (file)?
Maybe I should have a table with all files and every time I upload a
file I would add a record to that table.
And then when I create a document I would insert its information and
select one of the uploaded files.
Anyway, what is usually the best way to do this?
I think that having everything integrating would be better but I am
not sure the way to go.
Thanks,
Miguel
I am creating a simple CMS for a web site.
The web site will hold many documents and for that I created Documents
table which holds information on each document such as:
Title, Description, Author, Url, ...
I would need to create the following functionalities:
1. Create a document and upload its file
2. Edit a document information and maybe change the file associated
with it.
3. Delete a document record (info) and the file associated to it.
How should I do this?
Should I separate the create a document and upload a document (file)?
Maybe I should have a table with all files and every time I upload a
file I would add a record to that table.
And then when I create a document I would insert its information and
select one of the uploaded files.
Anyway, what is usually the best way to do this?
I think that having everything integrating would be better but I am
not sure the way to go.
Thanks,
Miguel