Our implementation is currently allowing clients to use the Slug header
to specify the filename for posted media files.  For example,

  POST /collection-uri HTTP/1.1
  Host: example.org
  Content-Type: image/png
  Content-Length: nnn
  Title: Foo
  Slug: foo.png

The slug is only used to set the file name.  As a fallback, users can
also use the Content-Disposition header to specify the filename.

I'm not exactly sure what (if anything) other implementors are using for
this and we'd really like to see this finalized by the WG.

There are a number of Pace's currently on the table regarding slugs:

[1]http://www.intertwingly.net/wiki/pie/PaceSlugInHeader
[2]http://www.intertwingly.net/wiki/pie/PaceSlugInContentDispositionHeader
[3]http://www.intertwingly.net/wiki/pie/PaceMinimalSlug

Options 1 and 2 have the advantage of being able to work with media
entries as well as regular entries.  As our implementation supports
both, we'd be happy with either.  After going through and implementing 3
initially, it didn't turn out to be very useful at all.

- James

Reply via email to