Fork to add fully flexible filepaths and forms for AJAX uploading.