Commit Graph

4 Commits

Author SHA1 Message Date
Benjamin Dauvergne 36437f440b Revert "Add a send-to view (fixes #7080)"
This reverts commit 651681aa6e.
2015-05-18 10:48:59 +02:00
Benjamin Dauvergne 651681aa6e Add a send-to view (fixes #7080)
To you it, make a POST using the multipart/form-data content type on

 /send-to/?email=<email-of-target-user>

Files are transmitted in the 'documents' fields of multipart/form-data body.
Each file must have a filename given in its content-disposition header.
Example:

POST /send-to/?email=john.doe@exampke.com HTTP/1.1
Host: localhost:8000
Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266
Content-Length: xxx

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="documents"; filename="attachment1.txt"
Content-Type: text/plain

Content of a.txt.

-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="documents"; filename="attachment2.html"
Content-Type: text/html

<!DOCTYPE html><title>Content of a.html.</title>

-----------------------------9051914041544843365972754266--
2015-05-18 10:48:43 +02:00
Benjamin Dauvergne cdd3364133 Initialize fargo 2015-02-13 14:58:25 +01:00
Benjamin Dauvergne 982b1e3afe First commit 2015-02-11 16:05:34 +01:00