Can anyone explain why files cant be uploaded using AJAX?

前端 未结 4 712
北荒
北荒 2021-01-22 01:06

I have read many articles etc that attempt to explain why a file (e.g. attachment etc) cannot be uploaded via AJAX (atleast without some \'tricks\' behind the scene).

Ca

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 01:37

    For security reasons, modern browsers do not allow Javascript to access files on the viewer's computer.

提交回复
热议问题