Implementing a “Both, Either-or, but Not Null” Requirement in a Database

后端 未结 4 1454
谎友^
谎友^ 2021-01-21 16:11

I have requirement for a web app that states that a user should be able to either upload an instruction document(s) (.pdf, .doc, .txt) or provide text for the instructions. The

4条回答
  •  礼貌的吻别
    2021-01-21 16:38

    If a user submitted text, could your application save it as a .txt file? This way you would only have to worry about dealing with files.

提交回复
热议问题