如何在上传到coldfusion文件夹时更改图像名称

发布于 2024-10-08 15:01:48 字数 176 浏览 0 评论 0原文


我正在 Coldfusion 中实现一个应用程序,我必须使用用户定义的名称而不是实际名称存储图像,我能够将图像存储到具有实际名称但不能使用用户定义名称的文件夹中,我必须将图像上传到名为“user_images”的文件夹中“,我如何用用户定义的名称更改实际名称。
如果有人提供代码就更好了。
谢谢
尤加尔

i am implementing a application in coldfusion in whis i have to store image with user defined name not actual name, i am able to store image into folder with actual name but not with user defined name ,i have to upload image into folder named "user_images", how can i change actual name with user defined name.
it will be better if any one provide code.

thanks
Yugal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

垂暮老矣 2024-10-15 15:01:48

您可以在使用 cffile 标签上传文件时提供特定的文件名。无论您在目标属性中使用什么文件名,都将用于保存文件。

You can provide a specific file name when you upload the file using the cffile tag. Whatever filename you use in the destination attribute will be used to save the file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文