• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 521
  • Last Modified:

Problem with HTMLInputFile

Hi!

I'm trying to edit a script made by someone else.

The problem I'm having is that the fileupload module doesn't work?

It says that the value property in HTMLInputFile not can be set.

Where should I look for answers?

Thanks!
0
Hermund
Asked:
Hermund
1 Solution
 
DotNetLover_BaanCommented:
Need more details... What is "HTMLInputFile" ? How are you using that ? Need some code to...
-Baan
0
 
ThogekCommented:
The HtmlInputFile.Value Property appears to be read-only:

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlinputfileclassvaluetopic.asp

"Note   The Value property is read-only. If you attempt to assign a value to this property, a System.NotSupportedException is thrown."
0
 
ThogekCommented:
Silly question: Why would you want to modify the property that stores "the full path of the file on the client's computer" anyway?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Timbo87Commented:
Yes, it's an HTML limitation/feature. No custom control or fancy code can circumvent that.
0
 
ThogekCommented:
Well, the HtmlInputFile.Value property contains the path of the submitted file indicated where _on the client's computer_ it is located.  Client.  As is browser.  Not something the server should have any need or reason to want to change, since it's only indicating where the file came from -- not where it's going or anything else relevant to its handling on the server.

Hence my question above: What it is that you are trying to do that led you to try modifying the HtmlInputFile.Value property?  (If we understand that, perhaps we can suggest an alternative way to do it.)
0
 
HermundAuthor Commented:
Thanks for your help!

This is not my code. I've been assigned the job of fixing code from someone else. I don't know yet why they would want to change the value property.

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now