Fix drag-n'-drop file uploads.

This really should be ractivized.