Fixed several problems with inline uploads.