Skip to content

File Upload Limit : 100kb #8329

Description

@alexcibotari

[REQUIRED] Environment info

firebase-tools: 13.34.0

Platform: Windows

[REQUIRED] Test case

Upload file bigger then 100k

[REQUIRED] Steps to reproduce

Reproduceable in Emulator only
Upload file bigger then 100k, using uploadBytes function in Frontend
The issue is in Express default limit configuration :

https://expressjs.com/en/resources/middleware/body-parser.html#:~:text=Defaults%20to%20'100kb'%20.

[REQUIRED] Expected behavior

File is uploaded

[REQUIRED] Actual behavior

Error


PayloadTooLargeError: request entity too large
    at readStream (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\raw-body\index.js:163:17)
    at getRawBody (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\raw-body\index.js:116:12)
    at read (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\body-parser\lib\read.js:79:3)
    at rawParser (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\body-parser\lib\types\raw.js:81:5)    
    at Layer.handle [as handle_request] (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\router\layer.js:95:5)
    at trim_prefix (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\router\index.js:328:13) 
    at ~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\router\index.js:286:9
    at Function.process_params (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\router\index.js:346:12)
    at next (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\express\lib\router\index.js:280:10)        
    at rawParser (~\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\body-parser\lib\types\raw.js:76:7)    



Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions