fixing error uploading file #6034

Fixing 6034