473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

please, please help - can't access HTTPFileCollection

hi.

i am having probs accessing the HttpFileCollection.
the count/length is always zero. the file upload parameters passed to
the page
that should be getting the httpfilecollection looks like this.

uploadprogress.aspx?&video_2=C%3A%5CDocuments%20an d%20Settings%
5CAdministrator.FTP-SERVER%5CMy%20Documents%5CMy%20Music%5C
iTunes%5CiTunes%20Music%5CJarabe%20De%20Palo%5CLa% 20Flaca%5C
01%20Quiero%20Ser%20Poeta.m4a&video_1=C%3A%5CDocum ents%20and
%20Settings%5CAdministrator.FTP-SERVER%5CMy%20Documents%5CMy
%20Music%5CiTunes%5CiTunes%20Music%5CJarabe%20De%2 0Palo%5CL
a%20Flaca%5C04%20La%20Flaca.m4a&video_0=C%3A%5CDoc uments%20
and%20Settings%5CAdministrator.FTP-SERVER%5CMy%20Documents%5C
My%20Music%5CiTunes%5CiTunes%20Music%5CJarabe%20De %20Palo%5
CLa%20Flaca%5C11%20La%20Flaca%28Acustica%29.m4a

but, when i iterate though the httpfilecollection, i always get a
length = 0 and, hence, myfiles.Count = 0.

this is an upload using javascript (not the asp:fileupload tool)
from the referring page and through a hidden iframe - could that be
messing things up?

below is the server code that (is supposed to) iterate through the
httpfilecollection.

help "much" appreciated at this point.
thanks.

'get the form file collection
Dim myfiles As System.Web.HttpFileCollection =
System.Web.HttpContext.Current.Request.Files
Dim iFile As Integer

For iFile = 0 To myfiles.Count - 1

'get the posted file
Dim postedFile As System.Web.HttpPostedFile =
myfiles(iFile)

'make sure it is not blank
If Not postedFile.FileName.Equals("") Then

'Upload a file the FTP server.

ftpClient.UploadFile(System.IO.Path.GetFileName(po stedFile.FileName))

End If

Next iFile

Dec 13 '06 #1
0 1007

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: DD | last post by:
Hello, Could anyone please help me?? Is there somebody who could explain me how to make a connection to a access database with a python cgi script. I would like to use common sql commands in my...
39
by: Scotter | last post by:
Okay I think my title line was worded misleadingly. So here goes again. I've got quite 20 identical MDB files running on an IIS5 server. From time to time I need to go into various tables and add...
1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
2
by: Brian | last post by:
Hello, I have a text file I'm attempting to parse. There are about 50 fixed width fields in each line / row. For example (shortened for brevity): W1234Somebody East 101110001111010101...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
1
by: pbd22 | last post by:
hi. i am having probs accessing the HttpFileCollection. the count/length is always zero. i have tried getting the url of the current form, and it checks out... looks like this: ...
0
by: pbd22 | last post by:
hi. i am having probs accessing the HttpFileCollection on the server in VB.NET (using asp.net). the count/length is always zero. the file upload parameters passed to the page that should be...
1
by: pbd22 | last post by:
hi. i have been posting this here and elsewhere a lot and can't seem to get resolution on this problem. i have been trying to upload files using a hidden iframe to a asp.net/vb.net form. the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.