Changed from artifact to resource in attach_file