From 8ea249eea49b9f46fd4d248dbefd36c0ddbae9d2 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Thu, 10 Oct 2013 20:27:04 -0700 Subject: [PATCH] POST_setappicon: Use VUploadLength. This endpoint was missed when fixing file uploads after the request.post -> request.POST deduplication fixup. --- r2/r2/controllers/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index 9bfb20a7c..05c81b4e1 100755 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -3505,7 +3505,7 @@ class ApiController(RedditController, OAuth2ResourceController): @validatedMultipartForm(VUser(), VModhash(), client=VOAuth2ClientDeveloper(), - icon_file=VLength( + icon_file=VUploadLength( 'file', max_length=1024*128, docs=dict(file="an icon (72x72)"))) @api_doc(api_section.apps)