LouiseMcMahon / nodebb-plugin-s3-uploads

A plugin for NodeBB to take file uploads and store them on S3
MIT License
17 stars 23 forks source link

respecting meta.config.maximumFileSize #4

Closed zombiefredrik closed 8 years ago

zombiefredrik commented 8 years ago

Added check against meta.config.maximumFileSize (uploads setting in admin).

zombiefredrik commented 8 years ago

I have no idea how to actually display an error message for this on the client, since my nginx proxy just 500:s. And I'm a nodebb newbie.

But if you do, can you please help me. Don't want people uploading 10Mb images (or worse).

And thanks for a great plugin.

LewisMcMahon commented 8 years ago

I've tested it with no proxy NodeBB returns the user an error message by default so i have merged and published it to npm thanks

zombiefredrik commented 8 years ago

No problem. Might be nodebb-plugin-composer-redactor that eats the error message. I'll dig on. Have a nice one!