473,388 Members | 1,352 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,388 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 3000
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.