当前位置: 代码迷 >> ColdFusion >> 从fileupload中获得路径,该怎么处理
  详细解决方案

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

热度:8926   发布时间:2013-02-26 00:00:00.0
从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有很多属性。你可以利用。
  相关解决方案