Hi,

I'm using mod_lua and doing file upload. Works fine, except I can't figure
out how to get the filename. I tried getting the header directly but it
doesn't seem to be in headers_in, ie this returns nil:

r.headers_in['Content-Disposition']

Content-Disposition: form-data; name="file_upload"; filename="a.txt"

Seems like only name="" available from the parsebody()? Is there a way to
get the filename for the uploaded file?

Thanks,

Mark

Reply via email to