473,386 Members | 1,795 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,386 software developers and data experts.

Unable to upload file to server using "Pure ASP File Upload"

Hi!

I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The welcome page has a browse button (for locating your local file), a textfield where the path is displayed, and a upload button. When clicking upload a VB ASP script is run, and the outcome is displayed on a new page.

1. On my local machine I got the script to work partially. By partially I mean that the server responded to the upload script with a successfull response (i.e. you uploaded this and that file with size etc...). The problem was that the file was never uploaded to the actual remote directory.

2. The other problem is that now and then the upload script fails to run. What happens is that when I click Upload, the repsonse page is supposed to be displayed but the browsers hangs with the information "Contacting localhost..." in the statusbar.

I haven't been able to figure this out but it could be some settings in IIS. I'm running the standard IIS coming with WinXP Prof. It seems like the asp-script parser in IIS suddenly stops working, or caches a bad copy of the script?!? Even if I change it back again it seems like I cannot run the code anymore. As up until now it was first working, then it stopped working, I changed some settings in IIS and it started to work again, and finally it didn't work without actually doing much changes(with working I mean that the asp script is actully executed, no file has ever actually been uploaded to the file see 1.).

I know re-installed IIS, and now the script is executed, but the response page is telling me that no files were uploaded (which infact is true...).

To sum up. There are three scenarios. 1. The browser just stops and displays "Connecting to localhost...", 2. It displays a successfull result but no file was uploaded, and 3. An unsuccessfull result (no files uploaded) is displayed. All 1-3 seems to be shown without any changes to the code...

What IIS settings should I use for this to work? I'm using a Virtual Directory and add Read, Script and Write access. I've disabled HTTP-keep alive.

As this script surfaces alot on various websites I am sure plenty of people has tried it. Anyone with a tip for someone that is immensely stuck?!?

thanks,

Peter
Jul 22 '05 #1
1 2999
Turn off active scripting in Norton or Mcafee
"PeterB" <pe***@data.se> wrote in message
news:O7**************@TK2MSFTNGP14.phx.gbl...
Hi!

I'm using Pure ASP File Upload
(http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file
from a client to a server. I am testing both on a local IIS and a remote
server. The welcome page has a browse button (for locating your local file),
a textfield where the path is displayed, and a upload button. When clicking
upload a VB ASP script is run, and the outcome is displayed on a new page.

1. On my local machine I got the script to work partially. By partially I
mean that the server responded to the upload script with a successfull
response (i.e. you uploaded this and that file with size etc...). The
problem was that the file was never uploaded to the actual remote directory.

2. The other problem is that now and then the upload script fails to run.
What happens is that when I click Upload, the repsonse page is supposed to
be displayed but the browsers hangs with the information "Contacting
localhost..." in the statusbar.

I haven't been able to figure this out but it could be some settings in IIS.
I'm running the standard IIS coming with WinXP Prof. It seems like the
asp-script parser in IIS suddenly stops working, or caches a bad copy of the
script?!? Even if I change it back again it seems like I cannot run the code
anymore. As up until now it was first working, then it stopped working, I
changed some settings in IIS and it started to work again, and finally it
didn't work without actually doing much changes(with working I mean that the
asp script is actully executed, no file has ever actually been uploaded to
the file see 1.).

I know re-installed IIS, and now the script is executed, but the response
page is telling me that no files were uploaded (which infact is true...).

To sum up. There are three scenarios. 1. The browser just stops and displays
"Connecting to localhost...", 2. It displays a successfull result but no
file was uploaded, and 3. An unsuccessfull result (no files uploaded) is
displayed. All 1-3 seems to be shown without any changes to the code...

What IIS settings should I use for this to work? I'm using a Virtual
Directory and add Read, Script and Write access. I've disabled HTTP-keep
alive.

As this script surfaces alot on various websites I am sure plenty of people
has tried it. Anyone with a tip for someone that is immensely stuck?!?

thanks,

Peter
Jul 22 '05 #2

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

Similar topics

2
by: news.bellatlantic.net | last post by:
I created a for with file inputs (<input type=file.../>) I named them file1, file2, file3 etc. How do I access them in the code behind without actually calling each one by name (there are 21 of...
2
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage()...
0
by: smanisankar | last post by:
hi, the following is the full page code for uploading a file to server. since i got no idea to overwrite the file, i want delete the file if the file is already uploaded. i got the folder name...
1
Fary4u
by: Fary4u | last post by:
Hi Guys i'm trying to upload a file, i've tried 3 different methods but still not work out i don't know how to over come this problem hidden file value, multiple form or popup uploading. 1-...
6
Markus
by: Markus | last post by:
I'm adding to my script a section that allows a thumbnail to be created and saved. I get this error: Warning: imagejpeg() : Unable to open '../uploads/thumb/' for writing: Is a directory in...
2
by: Darrel | last post by:
(I posted this previously in the wrong NG.) I get this error when trying to run a file upload function on my client's server. It works fine on my local server. I can also create a directory...
1
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of...
2
by: naveeddil | last post by:
Hello, I use this command for including my ASP files into another it is working perfectly on my XP 2002 SP2, IIS server and also i upload to brinkster.com and working perfectly there but here is...
5
by: TC | last post by:
Hey All, I'm trying to upload files via FTP and I'm using FtpWebRequest and WebClient. Unfortunately, I'm receiving a "Not Logged In" error. I know that others have seen this as I've seen...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.