首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

从fileupload中获得路径,该怎么处理

2012-03-02 
从fileupload中获得路径如何从fileupload中获得路径?[解决办法]Note:The file prefix is deprecated, in f

从fileupload中获得路径
如何从fileupload中获得路径?

[解决办法]
Note: The file prefix is deprecated, in favor of the cffile prefix. Do not use the file prefix in new applications.

The following file upload status parameters are available after an upload. Parameter Description
attemptedServerFile
Initial name ColdFusion used when attempting to save a file

clientDirectory
Directory location of the file uploaded from the client 's system

clientFile
Name of the file uploaded from the client 's system

clientFileExt
Extension of the uploaded file on the client system (without a period)

clientFileName
Name of the uploaded file on the client system (without an extension)

contentSubType
MIME content subtype of the saved file

contentType
MIME content type of the saved file

dateLastAccessed
Date and time the uploaded file was last accessed

fileExisted
Whether the file already existed with the same path (Yes or No)

fileSize
Size of the uploaded file

fileWasAppended
Whether ColdFusion appended uploaded file to a file (Yes or No)

fileWasOverwritten
Whether ColdFusion overwrote a file (Yes or No)

fileWasRenamed
Whether uploaded file renamed to avoid a name conflict (Yes or No)

fileWasSaved
Whether Cold Fusion saves a file (Yes or No)

oldFileSize
Size of a file that was overwritten in the file upload operation

serverDirectory
Directory of the file saved on the server

serverFile
Filename of the file saved on the server

serverFileExt
Extension of the uploaded file on the server (without a period)

serverFileName
Name of the uploaded file on the server (without an extension)

timeCreated
Time the uploaded file was created

timeLastModified
Date and time of the last modification to the uploaded file




[解决办法]
cffile有很多属性。你可以利用。

热点排行