various (file) upload fixes, closes #403, closes #402, closes #401, closes #400, closes #300, closes #199