a

>>Bugs>> [Fixed in trunk.511] trunk gives HasFile = false & FileName == null with master page
Pages: 1   reply
Author [Fixed in trunk.511] trunk gives HasFile = false & FileName == null with master page
Roger Martin
Total Posts: 12
Re: HasFile = false & FileName == null
8/8/2007 5:51:59 PM
[Post edited by Dean to pass XSS filter]
Dean,
I pulled in NeatUpload-trunk.500 to my Gallery Server code base to see if there were any changes in Medium Trust handling, but instead I discovered I could no longer add *any* files. Turns out the HasFile property always returns false even when there is clearly a file selected. Also, FileName is null. I'm running it on Vista, .NET 2.0, IIS7 in Classic mode.

Cheers,
Roger Martin Gallery Server Pro / www.galleryserverpro.com

 
Dean Brettle
Total Posts: 2015
Re: HasFile = false & FileName == null
8/8/2007 6:35:27 PM
Thanks for the problem report.  I don't see anything wrong with the code you sent, but I also can't reproduce the problem.  NeatUpload's Demo.aspx works for me (under .NET 2.0, XP, and the VS development webserver) and it uses HasFile, etc.  If you copy Demo.aspx and Demo.aspx.cs to your app, do the regular InputFile controls (ignore the MultiFile for now) on that page work?  How about if you make the NeatUpload-trunk.500 folder into it's own app?

When the problem occurs is a progress bar being displayed?  Is it updating and eventually showing "Complete"?

--Dean

 
Roger Martin
Total Posts: 12
Re: HasFile = false & FileName == null
8/8/2007 11:23:45 PM
I've been playing with this a couple hours and have made these observations: * Everything is fine when configuring the NeatUpload-trunk.500 folder as its own web app. * demo.aspx works fine when imported into my solution. (Technically, I had to change the @Page attribute "Src" to "CodeBehind" to get it to work - I think this is because I am using the WAP model and your demo assumed the website model) * Your control stops working when inside a master page. When I say "stops working", I mean the HasFile property is false and FileName is null. However, the progress indicator works as expected, shows "Complete", and the page posts back. I think the next step is to place the control in a simple master page, but my brain is fried for the day.

 
Dean Brettle
Total Posts: 2015
Re: [Fixed in trunk.511] trunk gives HasFile = false & FileName == null with master page
8/9/2007 3:33:38 AM
Thanks for narrowing it down!  I was able to reproduce the problem using a master page.  It was a UniqueID vs ClientID issue.  It is fixed in the latest snapshot (trunk.511).

 
Pages: 1   reply
a