Simple web form and uploader to PUT files onto my WebDAV server.
I chose the package name and started building the form with jQuery because I assumed it would help me with the XHR part, as it usually does. Unfortunately I couldn't find a way to send a raw file blob with jQuery's XHR yet. For now the upload function uses the rather verbose plain JS API, which works but makes the name a bit misleading.
… of the UI – GitHub pages won't accept your file uploads. Or look at a screenshot.
- Make a URL space that allows PUT, e.g. a WebDAV folder.
- You should restrict access to that. (Why?)
- Set up a page like
example.html
somewhere (else) on your webserver. - Fix the paths in it:
- URL to this module's CSS
- URL to this module's JS
- URL to jQuery (version 3.x recommended)
- Adjust the style sheet if you like, then remove the dummy entries from the uploads list.
- Configure the other settings to your needs or remove those you don't want. Config is explained in HTML comments in the example form.
- Needs more/better tests and docs.
ISC