nginx-upload-module icon indicating copy to clipboard operation
nginx-upload-module copied to clipboard

upload_pass not called on error

Open ghost opened this issue 4 months ago • 0 comments

Hello @fdintino, @vkholodkov ,

First of all, congratulations on this upload module that is very interesting.

On upload errors, the location hook defined within the upload_pass <location> directive is not called. In my application, I would like to perform internal operations when the upload fails.

The directive upload_cleanup <codes> does not accept a location to call on error.

Is there an existing option to implement a directive upload_error @error_hook for being notified on all errors ? Or maybe upload_cleanup <codes> <error_hook> ?

Thanks in advance.

ghost avatar Aug 22 '25 12:08 ghost