Save - http://webintents.org/save

The Save intent is designed to give applications the ability to offer a simple mechanism to save data in their application.

An action that can handle save could be anything that the user has installed, including and not limited to specialist image tools or audio editors that need to save data in the users file locker.

The "save" protocol is intended to be a lightweight save facility.

Registration

<intent
  action="http://webintents.org/save" 
  type="image/*" 
  href="save.html"
/>
action
Required. Must be http://webintents.org
type
Optional. Types are a filter
href
Optional. If specified, it will point to the action that is loaded when the user chooses the service. If undefined, use the current page.

Invocation

var intent = new Intent("http://webintents.org/save");
window.navigator.startActivity(intent);

Try it!

Data Formats

Clients and services can only interact with each other if they both support the same intent AND the same data type. Data-types can be any arbitary string, but it is expected that client and service will pass the same data if they both agree to support the protocol.

Advisory data-schemes are described below based off MIME-Types or Activity Streams

image/*

Client and Service should expect to recieve data in any of the following formats:

  • Blob
  • DataURI
  • URL

Managing Blobs

Client application

Service application

Managing URI's

Client application

audio/*
[ string uri ] || string uri
video/*
[ string uri ] || string uri
text/*
[ string uri ] || string uri
text/uri-list

Client and Service should expect to recieve data in the form of a string containing a fully formed URI

Saving a URI