Fixing file upload attributes