diff options
| author | Austin <austi_gillm935@ahapps.anoka.k12.mn.us> | 2016-07-03 08:07:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-03 08:07:05 +0200 |
| commit | f5a1c416f2e66f711a3a7a7437f940a145f4e916 (patch) | |
| tree | 5424fdf343ce9f9b26dfdf0d53979354cd9e622a /static | |
| parent | 7a0ec1b48181088b9d6bf3d3848c4351f22db3ca (diff) | |
have JS POST to upload.php in current working directory
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/app.js b/static/js/app.js index 5b1ddec..eaac857 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -117,7 +117,7 @@ document.addEventListener('DOMContentLoaded', function () { var bar = row.querySelector('.file-progress'); var percentIndicator = row.querySelector('.progress-percent'); var xhr = new XMLHttpRequest(); - xhr.open('POST', '/upload.php'); + xhr.open('POST', 'upload.php'); xhr['row'] = row; xhr['bar'] = bar; |
