redhog / ep_fileupload

File upload plugin for Etherpad Lite
http://redhog.org/ep_fileupload
7 stars 13 forks source link

File upload limit #11

Open tigran-a opened 11 years ago

tigran-a commented 11 years ago

Hi,

Could you please tell me how to increase file upload limit? It does not take more than 1 mb (looks like)

on client: 413 (Request Entity Too Large) on server: [ERROR] console - CLIENT SIDE JAVASCRIPT ERROR: {"errorId":"NFZEZ6MjVJrY2orH2zkB","msg":"Uncaught TypeError: Cannot read property 'readyState' of undefined","url":"http://snt.spellout.org/p/autoui13tex","linenumber":457,"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36"}

Thanks!

JohnMcLear commented 11 years ago
app.use(express.limit('4M'));

this probably needs to be a setting.

tigran-a commented 11 years ago

I tried that, got some exceptions (something about first parameter of null). But could you please tell me where exactly should I put that? Thank you in advance

JohnMcLear commented 11 years ago

Nah, I'm not sure without looking at the source in detail and right now im working for clients. Do let me know if you figure it out