openresty / openresty/lua-resty-upload

upload 2MB+ file failed

Open
#29 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
414
Forks
110
Avg merge
2h 43m
Merged PRs (30d)
1

Description

Hi, my version is openresty/1.9.15.1, When I upload 2MB+ size file I got "nginx: lua atpanic: Lua VM crashed, reason: unknown reason" Error,

I could upload 100KB file successfully. Seems some memory configure need changed?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified in the report. Start by reproducing the failure with the stated OpenResty version using files around 2MB and compare it with the successful 100KB upload, then trace the upload parser and its memory behavior. Done means identifying the cause and adding a regression test for large uploads.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.