File URL
Response: HTTP 200, application/json (Hide)
POST /upload-files
Files:
1 2 3 4 5 6
[ [ "ac.png", "image\/png" ] ]
Response:
1 2 3 4 5 6 7 8 9
[ { "code": "CJklO2YbqL4h5xPM3nHGvCqrxL0EIvBgFNVwAXMb", "name": "ac.png", "mime_type": "image\/png", "size": 1927, "thumbnail_url": "http:\/\/feather.dev\/proxy.php?proxy=forward_thumbnail&module=system&v=current&b=DEV&context=upload&name=2015-04%2FKfYaMWld3VdtUeRMyzY22sFITFI7Pi6U76vRgyJ2&original_file_name=ac.png&width=--WIDTH--&height=--HEIGHT--&ver=1927&scale=--SCALE--" } ]
Response: HTTP 200, application/json (Hide)
POST /projects/1/files
Payload:
1 2 3
{ "uploaded_file_code": "CJklO2YbqL4h5xPM3nHGvCqrxL0EIvBgFNVwAXMb" }
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
{ "single": { "id": 1, "class": "File", "url_path": "\/projects\/1\/files\/1", "name": "ac.png", "is_trashed": false, "trashed_on": null, "trashed_by_id": 0, "project_id": 1, "is_hidden_from_clients": false, "mime_type": "image\/png", "size": 1927, "md5": null, "download_url": "http:\/\/feather.dev\/projects\/1\/files\/1\/download", "thumbnail_url": "http:\/\/feather.dev\/proxy.php?proxy=forward_thumbnail&module=system&v=current&b=DEV&context=upload&name=2015-04%2FKfYaMWld3VdtUeRMyzY22sFITFI7Pi6U76vRgyJ2&original_file_name=ac.png&width=--WIDTH--&height=--HEIGHT--&ver=1927&scale=--SCALE--", "file_meta": { "kind": "image", "dimensions": { "width": 50, "height": 50 } }, "created_on": 1430164127, "created_by_id": 1, "updated_on": 1430164127, "updated_by_id": 1 } }
Response: HTTP 200, application/json (Hide)
GET /projects/1/files/1
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
{ "single": { "id": 1, "class": "File", "url_path": "\/projects\/1\/files\/1", "name": "ac.png", "is_trashed": false, "trashed_on": null, "trashed_by_id": 0, "project_id": 1, "is_hidden_from_clients": false, "mime_type": "image\/png", "size": 1927, "md5": null, "download_url": "http:\/\/feather.dev\/projects\/1\/files\/1\/download", "thumbnail_url": "http:\/\/feather.dev\/proxy.php?proxy=forward_thumbnail&module=system&v=current&b=DEV&context=upload&name=2015-04%2FKfYaMWld3VdtUeRMyzY22sFITFI7Pi6U76vRgyJ2&original_file_name=ac.png&width=--WIDTH--&height=--HEIGHT--&ver=1927&scale=--SCALE--", "file_meta": { "kind": "image", "dimensions": { "width": 50, "height": 50 } }, "created_on": 1430164127, "created_by_id": 1, "updated_on": 1430164127, "updated_by_id": 1 } }
Response: HTTP 404, text/html
GET /projects/2/files/1