从fileupload中获得路径

zhoofeng 2007-01-20 06:17:55
如何从fileupload中获得路径?
...全文
187 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dogfish 2007-01-22
  • 打赏
  • 举报
回复
cffile有很多属性。你可以利用。
Dogfish 2007-01-22
  • 打赏
  • 举报
回复
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



879

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 ColdFusion
社区管理员
  • ColdFusion社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧