Uploading services resources sample code