support non-ajaxy file uploads for older browsers