<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AttachFS</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>Recent changes to AttachFS</description><atom:link href="https://sourceforge.net/p/coils/wiki/AttachFS/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 25 Jun 2020 17:07:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/coils/wiki/AttachFS/feed" rel="self" type="application/rss+xml"/><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -6,7 +6,7 @@

 ##Examples

-###Retrieving an Entity With Authentication
+###Retrieving an Entity

 The payload or represenatation of an entity can be retrieved by a simple GET request.  The content-disposition is controlled by the URL.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Thu, 25 Jun 2020 17:07:23 -0000</pubDate><guid>https://sourceforge.net3da1d4de174ca3d3e7be4633f1d4327d3dab898f</guid></item><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -5,12 +5,6 @@
 #AttachFS

 ##Examples
-
-###Retrieving an Entity Without Authentication
-
-If a document is readable by the Network Context (anonymous) via ACLs it can be retrieved without autentication by making the AttachFS request to "/public"
-
-    curl myfile.txt http://coils.example.com/public/view/123456

 ###Retrieving an Entity With Authentication

@@ -94,6 +88,12 @@

 The above will store the contents of the file "OGo18215321.ods" as a new attachment to the entity with the object 10,100.  The name "OGo18215321.ods" will be stored as a label of the attachment - but [Attachment] entities are always identified by the automatically generated GUID value.  The GUID value of an [Attachment] is returned to the client as the "Etag" value.  As the contents of an [Attachment] cannot be modified - only new [Attachment] entities can be created] - no version information is required for an [Attachment]'s etag.

+###Retrieving an Entity Without Authentication
+
+If a document is readable by the Network Context (anonymous) via ACLs it can be retrieved without autentication by making the AttachFS request to "/public"
+
+    curl myfile.txt http://coils.example.com/public/view/123456
+
 ##Articles

    - [AttachFS PUT to Projects and Tasks](http://www.opengroupware.us/2013/03/attachfs-put-to-projects-and-tasks.html)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Thu, 25 Jun 2020 17:07:08 -0000</pubDate><guid>https://sourceforge.net7a2e67b724dc54a17dddd0d1a3532caace597573</guid></item><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -6,7 +6,13 @@

 ##Examples

-###Retrieving an Entity
+###Retrieving an Entity Without Authentication
+
+If a document is readable by the Network Context (anonymous) via ACLs it can be retrieved without autentication by making the AttachFS request to "/public"
+
+    curl myfile.txt http://coils.example.com/public/view/123456
+
+###Retrieving an Entity With Authentication

 The payload or represenatation of an entity can be retrieved by a simple GET request.  The content-disposition is controlled by the URL.

@@ -23,12 +29,6 @@
 The ability to request a specific content dispositions allows AttachFS to be easily used when embedding requests to resources in web pages, etc...

 If the requested id is non-numeric it is assumed that the id represents the GUID of an [Attachment].
-
-###Retrieving an Entity Without Authentication
-
-If a document is readable by the Network Context (anonymous) via ACLs it can be retrieved without autentication by making the AttachFS request to "/public"
-
-    curl myfile.txt http://coils.example.com/public/view/123456

 ####Document/Attachment

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Thu, 25 Jun 2020 17:06:33 -0000</pubDate><guid>https://sourceforge.net909ff3e0d2266173c75c4cd5eaacaf8e85e709ab</guid></item><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -23,6 +23,12 @@
 The ability to request a specific content dispositions allows AttachFS to be easily used when embedding requests to resources in web pages, etc...

 If the requested id is non-numeric it is assumed that the id represents the GUID of an [Attachment].
+
+###Retrieving an Entity Without Authentication
+
+If a document is readable by the Network Context (anonymous) via ACLs it can be retrieved without autentication by making the AttachFS request to "/public"
+
+    curl myfile.txt http://coils.example.com/public/view/123456

 ####Document/Attachment

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Thu, 25 Jun 2020 17:05:43 -0000</pubDate><guid>https://sourceforge.netf23ef7222d8d1974dc8241e714d5a2f31410f2f9</guid></item><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -24,7 +24,15 @@

 If the requested id is non-numeric it is assumed that the id represents the GUID of an [Attachment].

-For [Document] and [Attachment] entities the payload returned is the contents of the document or attachment;  this will include setting the Content-Type of the response to the appropriate value (the value stored with the document or attachment).  If the object id is that of a [Process] entity the processes' workflow log will be returned as a "text/plain" document.
+####Document/Attachment
+
+For [Document] and [Attachment] entities the payload returned is the contents of the document or attachment;  this will include setting the Content-Type of the response to the appropriate value (the value stored with the document or attachment).  
+
+####Process
+If the object id is that of a [Process] entity the processes' workflow log will be returned as a "text/plain" document.
+
+####Contact
+If the object is is that of a [Contact] entity AttachFS supports two modes.  The default mode is vCard, in which case a vCard representing the contact is returned.  If the "photo" mode is specified the photo associated with the contact is returned;  if the contact has no photo the thumbnail defined for the "text/vcard" mime-type is returned.

 ###Create a new document in a folder.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Sun, 06 Jul 2014 02:53:38 -0000</pubDate><guid>https://sourceforge.net0e418582b4f0278a98a38fc630dd0628a4100f81</guid></item><item><title>AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -79,3 +79,10 @@
        http://coils.example.co/attachfs/10100/OGo18215321.ods

 The above will store the contents of the file "OGo18215321.ods" as a new attachment to the entity with the object 10,100.  The name "OGo18215321.ods" will be stored as a label of the attachment - but [Attachment] entities are always identified by the automatically generated GUID value.  The GUID value of an [Attachment] is returned to the client as the "Etag" value.  As the contents of an [Attachment] cannot be modified - only new [Attachment] entities can be created] - no version information is required for an [Attachment]'s etag.
+
+##Articles
+
+   - [AttachFS PUT to Projects and Tasks](http://www.opengroupware.us/2013/03/attachfs-put-to-projects-and-tasks.html)
+   - [OpenGroupware Server Side Filters](http://www.opengroupware.us/2011/09/opengroupware-server-side-filters.html)
+   - [Using the AttachFS Protocol Bundle](http://www.opengroupware.us/2011/05/using-attachfs-protocol-bundl.html)
+   - [AttachFS PUT to Projects and Tasks](http://www.opengroupware.us/search/label/attachfs)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Sat, 06 Apr 2013 11:01:30 -0000</pubDate><guid>https://sourceforge.net10e944a821596243134452047e06a69369384bed</guid></item><item><title>WikiPage AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -5,6 +5,27 @@
 #AttachFS

 ##Examples
+
+###Retrieving an Entity
+
+The payload or represenatation of an entity can be retrieved by a simple GET request.  The content-disposition is controlled by the URL.
+
+For these examples 123,456 is the object id of an entity to which the user has read privileges.
+
+To retrieve an entity with downlaod (Save-As) disposition:
+
+    curl -u $LOGNAME -o myfile.txt http://coils.example.com/attachfs/download/123456
+
+To retrieve an entity with inline (View) disposition:
+
+    curl -u $LOGNAME -o myfile.txt http://coils.example.com/attachfs/view/123456
+
+The ability to request a specific content dispositions allows AttachFS to be easily used when embedding requests to resources in web pages, etc...
+
+If the requested id is non-numeric it is assumed that the id represents the GUID of an [Attachment].
+
+For [Document] and [Attachment] entities the payload returned is the contents of the document or attachment;  this will include setting the Content-Type of the response to the appropriate value (the value stored with the document or attachment).  If the object id is that of a [Process] entity the processes' workflow log will be returned as a "text/plain" document.
+

 ###Create a new document in a folder.

@@ -49,3 +70,12 @@

 The above example deletes the entity with an object id of 87,979,769.

+###Creating an Attachment related to an entity
+
+In this example 10100 is any proper entity the user has read access to.
+
+    curl -u $LOGNAME -T OGo18215321.ods \
+       -H 'Content-Type: vnd.oasis.opendocument.spreadsheet'
+       http://coils.example.co/attachfs/10100/OGo18215321.ods
+
+The above will store the contents of the file "OGo18215321.ods" as a new attachment to the entity with the object 10,100.  The name "OGo18215321.ods" will be stored as a label of the attachment - but [Attachment] entities are always identified by the automatically generated GUID value.  The GUID value of an [Attachment] is returned to the client as the "Etag" value.  As the contents of an [Attachment] cannot be modified - only new [Attachment] entities can be created] - no version information is required for an [Attachment]'s etag.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Mon, 01 Apr 2013 11:31:52 -0000</pubDate><guid>https://sourceforge.netccfc12491f560c5102f3b84787da1430cd6c46bd</guid></item><item><title>WikiPage AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -40,3 +40,12 @@
     curl -u $LOGNAME -T /etc/passwd http://coils.example.com/attachfs/123456/stanley.txt?mode=file

 If a file named "stanley.txt" exists in the folder with the entity of 123456 its contents will be updated.  If no such file exists in the folder then a new document document named "stanley.txt" will be created.  In either case the document will be non-transient and the Content-Type of the upload will be stored as the document's MIME-Type
+
+###Delete An Entity
+
+Via AttachFS any proper entity can be deleted by its object id; provided the user has sufficient privileges and no constraints prevent the deletion.
+
+    curl -u $LOGNAME -X DELETE 'http://coils.example.com/attachfs/87979769'
+
+The above example deletes the entity with an object id of 87,979,769.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Mon, 01 Apr 2013 10:37:11 -0000</pubDate><guid>https://sourceforge.net439341b1f75c5d9864e1560e063dd25715ccb580</guid></item><item><title>WikiPage AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -23,7 +23,7 @@
 This will update the contents of the document with the id of 123456 without changing the name of the document.  It will also update the MIME-Type and mark the file as non-transient (permanent).

-###Update the contents of a document, renaming the document
+###Update the contents of a Document, renaming the Document

 For this example OGo#123456 is a [Document] entity in a [Folder] of a [Project] on which the user has write privileges.

@@ -31,7 +31,9 @@

 This will update the contents of the document with the id of 123456 and set the name to "pablo.txt".  It will also update the MIME-Type and mark the file as non-transient (permanent).

-It is also possible to update the a document in this manner using the the object if of the folder containing the document and the name of the file.
+It is also possible to update the a document in this manner using the the object if of the folder containing the document and the name of the file (next example).
+
+###Create or update a document in a Folder by name.

 For this example OGo#123456 is a [Folder] entity in a [Project] on which the user has write privileges.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Mon, 01 Apr 2013 10:12:09 -0000</pubDate><guid>https://sourceforge.net1010d6921da329989547a70341ce3ad168a2f08d</guid></item><item><title>WikiPage AttachFS modified by Adam Tauno Williams</title><link>https://sourceforge.net/p/coils/wiki/AttachFS/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -31,5 +31,10 @@

 This will update the contents of the document with the id of 123456 and set the name to "pablo.txt".  It will also update the MIME-Type and mark the file as non-transient (permanent).

+It is also possible to update the a document in this manner using the the object if of the folder containing the document and the name of the file.

+For this example OGo#123456 is a [Folder] entity in a [Project] on which the user has write privileges.

+    curl -u $LOGNAME -T /etc/passwd http://coils.example.com/attachfs/123456/stanley.txt?mode=file
+
+If a file named "stanley.txt" exists in the folder with the entity of 123456 its contents will be updated.  If no such file exists in the folder then a new document document named "stanley.txt" will be created.  In either case the document will be non-transient and the Content-Type of the upload will be stored as the document's MIME-Type
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam Tauno Williams</dc:creator><pubDate>Mon, 01 Apr 2013 10:05:34 -0000</pubDate><guid>https://sourceforge.netcc7b36499bf75fd56d9f2d856db206fb5e648cdd</guid></item></channel></rss>