I have a script that when user sends his data to my app I make an xml file and upload it for further use. I think there are two ways to implement it:
- I can make a model that save xml file with its username and id to
database
I can make a folder for each user and upload the file
and save the url in database to refer to xml file.
which one is efficient? and can I upload xml file to database? are there any other comfortable way to do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…