mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use max_doc_length rather than max_doc_size to be consistent with other services
This commit is contained in:
parent
27d3ebc1fd
commit
7185657f06
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ app.get '/project/:project_id/doc', HttpController.getAllDocs
|
|||
app.get '/project/:project_id/doc/:doc_id', HttpController.getDoc
|
||||
app.get '/project/:project_id/doc/:doc_id/raw', HttpController.getRawDoc
|
||||
# Add 16kb overhead for the JSON encoding
|
||||
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(limit: Settings.max_doc_size + 16 * 1024), HttpController.updateDoc
|
||||
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(limit: Settings.max_doc_length + 16 * 1024), HttpController.updateDoc
|
||||
app.del '/project/:project_id/doc/:doc_id', HttpController.deleteDoc
|
||||
|
||||
app.post '/project/:project_id/archive', HttpController.archiveAllDocs
|
||||
|
|
|
@ -18,4 +18,4 @@ module.exports =
|
|||
# secret: ""
|
||||
# bucket: "something"
|
||||
|
||||
max_doc_size: 2 * 1024 * 1024 # 2mb
|
||||
max_doc_length: 2 * 1024 * 1024 # 2mb
|
||||
|
|
Loading…
Reference in a new issue