Add format detection for upload artifact resource impl
Merge remote-tracking branch 'origin/master'