當(dāng)我上傳文件(例如照片)時(shí),我失去了用戶會(huì)話,網(wǎng)站將我重定向到登錄頁(yè)面。我在不同的文件夾中上傳文件,而不是在項(xiàng)目的文件夾中。Web.config、system.web:<system.web> <authentication mode="Forms"> <forms defaultUrl="/" loginUrl="/Account/Login" name="_User" timeout="60" path="/" /> </authentication> <sessionState mode="InProc" timeout="60" /> <compilation targetFramework="4.7" /> <httpRuntime targetFramework="4.7" executionTimeout="3600" maxRequestLength="52428" /> <globalization culture="en-US" uiCulture="en-US" fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" responseHeaderEncoding="utf-8" /> <customErrors mode="Off" defaultRedirect="/" redirectMode="ResponseRedirect" /></system.web>任何的想法?
丟失文件上傳的身份驗(yàn)證
慕工程0101907
2021-08-07 15:36:14