Difference between revisions of "Web Integration/FileUploadExample"

From Creative Commons
Jump to: navigation, search
Line 33: Line 33:
More information about simple marking practices can be found at the wiki [http://wiki.creativecommons.org/Marking Marking page].  
More information about simple marking practices can be found at the wiki [http://wiki.creativecommons.org/Marking Marking page].
=== Intermediate ===
=== Intermediate ===

Latest revision as of 18:14, 26 October 2010


The main idea of this feature is to allow users to set a license for an individual file that they are uploading. This is done during the actual upload and can be either mandatory or optional (assuming All Rights Reserved by default).

Also, it can be combined with a Default License Choice to allow a user to change the license on specific uploads while having a default Creative Commons license.


The CC Javascript Widget called LicenseChooser.js provides a lightweight method for integrating this license selection into web applications. The widget is used by TypePad and WpLicense provides the functionality for WordPress.

TypePad ccLicenseWidget.jpg

Below is an image of how flickr has chosen to implement this:

Fig. 3 - flickr user choose individual.jpg

Next Steps


Use similar output to what the Creative Commons License Chooser service provides users. For example, users who choose the Creative Commons Attribution License receive the following code snippet:

<a rel="license" href="http://creativecommons.org/licenses/by/3.0/us/">
<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/us/88x31.png" />
<br />This work is licensed under a 
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/us/">Creative Commons Attribution 3.0 United States License</a>.

The code will display an icon as well as a link to the full license deed hosted at the Creative Commons site. This is the appropriate way to mark CC-licensed content.

Fig. 6 how license is displayed on your website.jpg

More information about simple marking practices can be found at the wiki Marking page.


RDFa is RDF in attributes and is a good way to exhibit semantic relationships for search engines and other machines. RDFa allows users to annotate human readable notices on individual assets that include the custom properties needed for attribution as well as other useful properties. The Syndication page explains how license statements may be included in various syndication formats, at both the feed and individual item level.


XMP facilitates embedding metadata in files using a subset of RDF. Most notably XMP supports embedding metadata in PDF and other image formats, though it is designed to support nearly any file type.

More information:

See Also

File Upload Example
Back to the HowTo.
Back to Web Integration.
Back to Developers.