diff --git a/crates/in-web/src/drive.rs b/crates/in-web/src/drive.rs
index a5ef415..1980342 100644
--- a/crates/in-web/src/drive.rs
+++ b/crates/in-web/src/drive.rs
@@ -370,11 +370,10 @@ async fn drive(cx: &Cx) -> Result {
for file in listing.files.iter() {
@@ -515,7 +514,7 @@ async fn upload_script(cx: &Cx) -> Result {
if (!form || form.id !== 'upload-form') { return; } \
e.preventDefault(); \
var input = form.querySelector('.file-upload-input'); \
- var box = form.querySelector('.file-upload-box'); \
+ var box = form.querySelector('.file-upload-box') || form; \
var folder = form.querySelector('input[name=folder_id]').value; \
var files = input && input.files ? Array.prototype.slice.call(input.files) : []; \
if (!files.length) { return; } \