[FIX #2500] fixes the duplicated metadata on uploading the same file multiple times