I am using XMLHttpRequest to send a file from javascript code to a django view.I need to detect,whether the file has been sent or if s
XMLHttpRequest
javascript
django view
XMLHttpRequest objects contain the status and readyState properties, which you can test in the xhr.onreadystatechange event to check if your request was successful.
status
readyState
xhr.onreadystatechange