POST_setappicon: Use VUploadLength.

This endpoint was missed when fixing file uploads after the
request.post -> request.POST deduplication fixup.
This commit is contained in:
Neil Williams
2013-10-10 20:27:04 -07:00
parent 8f7db4f3da
commit 8ea249eea4

View File

@@ -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)