Handling 413 Request Entity Too Large while uploading synced settings.

Non-subscribers are limited in the file size they can upload.
This commit is contained in:
2016-07-08 12:38:58 +02:00
parent 89a9055aa4
commit 36bbead1e1
3 changed files with 14 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin,
async def share_image(self, context):
"""Sends files to the Pillar server."""
self.report({'INFO'}, 'Uploading %s %s' % (self.target.lower(), self.name))
self.report({'INFO'}, "Uploading %s '%s'" % (self.target.lower(), self.name))
if self.target == 'FILE':
node = await self.upload_file(self.name)
else: