Adding 'upload-file' primitive