ensuring uploaded files are safe

后端 未结 6 2059
予麋鹿
予麋鹿 2021-01-04 23:23

My boss has come to me and asked how to enure a file uploaded through web page is safe. He wants people to be able to upload pdfs and tiff images (and the like) and his real

6条回答
  •  孤城傲影
    2021-01-05 00:11

    You'd probably need to chain an actual virus scanner to the upload process (the same way many virus scanners ensure that a file you download in your browser is safe).

    In order to do this yourself, you'd have to keep it up to date, which means keeping libraries of virus definitions around, which is likely beyond the scope of your application (and may not even be feasible depending on the size of your organization).

提交回复
热议问题