Implementation of patch uploading