<%
if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then
	if _SESSION["last_filename"] ~= nil then
		if _SESSION["upload_errorcode"] ~= nil then
			print(_SESSION["upload_errorcode"])
			rawset(_SESSION,"upload_errorcode",nil)
			SessionModule.save(_SESSION_ID)
		else
			local nowdir = string.gsub(_SESSION["currentpath"],":{{","%[")
			nowdir = string.gsub(nowdir,"}}:","%]")
			local last_filename = string.gsub(_SESSION["last_filename"],":{{","%[")
			last_filename = string.gsub(last_filename,"}}:","%]")
			local status,result = c_GetFileSize(_SESSION["username"],last_filename,nowdir)
			if status == 1 then
				print(result.."/".._SESSION["last_filesize"].."/"..last_filename)
			else
				print("-2")
			end
		end
	else
		print("-1")
	end
else
	print("0")
end

%>