Fixed #21033 -- Uploaded file's name truncates to 255 not in all cases