mod_http_upload/mod_http_upload.lua
changeset 2195 e47046abf568
parent 2070 cb74e4ab13f0
child 2196 bb8f7785aed7
equal deleted inserted replaced
2194:0c01444f8bc2 2195:e47046abf568
    81 end);
    81 end);
    82 
    82 
    83 -- http service
    83 -- http service
    84 local function upload_data(event, path)
    84 local function upload_data(event, path)
    85 	if not pending_slots[path] then
    85 	if not pending_slots[path] then
       
    86 		module:log("warn", "Attempt to upload to unknown slot %q", path);
    86 		return 401;
    87 		return 401;
    87 	end
    88 	end
    88 	local random, filename = path:match("^([^/]+)/([^/]+)$");
    89 	local random, filename = path:match("^([^/]+)/([^/]+)$");
    89 	if not random then
    90 	if not random then
    90 		return 400;
    91 		return 400;