如何更新上传文件的路径 [英] how to update the path of the upload file

查看:107
本文介绍了如何更新上传文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我有文件上传按钮,一个文本框,一个保存和更新按钮.

第一次,当我上传文件并单击保存"按钮时,它在文本框中显示该路径并将其保存在数据库中...但是,当我想更改文件路径时,它在数据库中未更新并显示旧文件路径仅在文本框中....


谁能纠正这个错误.....

hi!

i''m having the file upload button , one text box ,one save and update button.

first time when i upload the file and click on save button it displaying that path on the text box and its saving in the database also... but when i want to change the file path that time its not updating in the database and its showing the old file path only in the text box....


can any one rectify this error please.....

推荐答案

您不能.即使默认情况下,Upload控件也不会让您知道用户的环境,这包括原始路径.无论如何,这对您来说并没有太多用处,因为您将无法控制下载它的去向...

[edit]为清楚起见改写了最后一句话-OriginalGriff [/edit]
You can''t. The Upload control does not let you know - even by default - about the user''s environment, and this includes the original path. It wouldn''t be a lot of use to you anyway as you will have no control over where the goes when it is downloaded either...

[edit]Final sentence rephrased for clarity - OriginalGriff[/edit]


看看:
Silverlight文件上传 [ ^ ]-您显然需要在第二次上传时更新数据库中的信息:)

最好的问候
Espen Harlinn
Have a look at:
Silverlight File Upload[^] - you obviously need to update the information in the database on the second upload :)

Best regards
Espen Harlinn


这篇关于如何更新上传文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆