summary refs log tree commit diff
path: root/synapse/rest/media/v1/upload_resource.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-13/+10
|
* Run Black. (#5482)Amber Brown2019-06-201-21/+9
|
* Port over enough to get some sytests running on Python 3 (#3668)Amber Brown2018-08-201-5/+5
|
* Use parse_{int,str} and assert from http.servletKrombel2018-07-131-2/+3
| | | | | | | parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable
* run isortAmber Brown2018-07-091-4/+1
|
* Set Server header in SynapseRequestRichard van der Hoff2018-05-101-1/+0
| | | | | | | | | | | | (instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really.
* Remove redundant request_handler decoratorRichard van der Hoff2018-05-101-7/+8
| | | | | | This is needless complexity; we might as well use the wrapper directly. Also rename wrap_request_handler->wrap_json_request_handler.
* more bytes stringsAdrian Tschira2018-04-291-3/+3
| | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
* Basic implementation of backup media storeErik Johnston2017-10-121-1/+1
|
* Log which files we saved attachments to in the media_repositoryMark Haines2017-01-101-0/+2
|
* Report per request metrics for all of the things using request_handlerMark Haines2016-04-281-1/+2
|
* Split out BaseMediaResource into MediaRepositoryErik Johnston2016-04-191-34/+17
| | | | | | | | | This is so that a single MediaRepository can be shared across all resources, rather than having a "copy" per resource. In particular this allows us to guard against both the thumbnail and download resource triggering a download of remote content at the same time.
* Introduce a Requester objectDaniel Wagner-Hall2016-01-111-2/+2
| | | | | | | | | This tracks data about the entity which made the request. This is instead of passing around a tuple, which requires call-site modifications every time a new piece of optional context is passed around. I tried to introduce a User object. I gave up.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Allow guests to register and call /events?room_id=Daniel Wagner-Hall2015-11-041-1/+1
| | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices.
* Merge branch 'release-v0.10.0' into developMark Haines2015-08-281-4/+8
|\ | | | | | | | | | | | | Conflicts: synapse/handlers/auth.py synapse/python_dependencies.py synapse/rest/client/v1/login.py
| * Give a sensible error message if the filename is invalid UTF-8Mark Haines2015-08-261-1/+7
| |
| * Allow non-ascii filenames for attachmentsMark Haines2015-08-261-4/+2
| |
* | Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-1/+1
|/ | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* Enforce ascii filenames for uploadsErik Johnston2015-06-301-1/+3
|
* Add Content-Disposition headers to media repo v1 downloadsErik Johnston2015-06-301-1/+5
|
* Combine the request wrappers in rest/media/v1 and http/server into a single ↵Mark Haines2015-04-211-49/+36
| | | | wrapper decorator
* Fix code-styleMark Haines2015-02-101-2/+2
|
* Code-style fixesMark Haines2015-02-101-3/+4
|
* ...and here's the actual impl. git fail.Matthew Hodgson2015-02-071-25/+32
|
* Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-1/+1
| | | | device_id in the internal meta data for the event along with the transaction id when sending events
* Return the device_id from get_auth_by_reqMark Haines2015-01-281-1/+1
|
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+113