httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Taylor <mtt...@gmail.com>
Subject mod_lua parsebody multipart form filename
Date Sun, 10 Jul 2016 03:26:35 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message