文件上傳至文件夾與上傳至數(shù)據(jù)庫有三點不同 :
1
、標(biāo)簽
<nhtml:form></html:form>
的不同:
上傳至文件夾,在標(biāo)簽
<nhtml:form></html:form>
中應(yīng)放入
<html text property="_directory"/>
上傳至數(shù)據(jù)庫,在標(biāo)簽
<nhtml:form></html:form>
中應(yīng)放入
<html text property="_table"/>
2
、標(biāo)簽
<nhtml:button />
的不同:
上傳至文件夾,標(biāo)簽
<nhtml:button />
的
method="upload";
上傳到數(shù)據(jù)庫,標(biāo)簽
<nhtml:button />
的
method="update"
3
、標(biāo)簽
<nhtml:file/>
的屬性意義不同:
上傳至數(shù)據(jù)庫時,標(biāo)簽
<nhtml:file/>
的
property
值是保存文件內(nèi)容的字段名。
上傳到文件夾,標(biāo)簽
<nhtml:file/>
的
property
值無意義,但上傳多個文件時,其值應(yīng)不相同。
?newxy新坐標(biāo)技術(shù)網(wǎng)站:http://www.newxy.net