File upload improvements