file upload improvements