473,840 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3029
Turn off active scripting in Norton or Mcafee
"PeterB" <pe***@data.s e> wrote in message
news:O7******** ******@TK2MSFTN GP14.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
2017
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 them). This is what I have so far. Strangely I get a error some of the time, I have not isolated it because I can't get it to go to debug. The code below kind of works about every 3rd one gives me an error and I can't get it to go to debug! I get...
2
3441
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() fileitem = form if fileitem.file: # It's an uploaded file; count lines
0
2854
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 and filename of the file to delete from the request.QueryString("path") so i got the above error when i try to delete the file before upload. Please anyone help me to solve out from this error. <%@ Import Namespace="System.IO" %>
1
3605
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- <SCRIPT TYPE="text/javascript"> function popupform(myform, windowname)
6
6808
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 /home/.gobbles/mahcuz/mahcuz.com/upload/uploaded.php on line 129 And this is some of the code from the page: /* New code for thumbnails. Will on work if user selects "create thumb on upload" on the upload page */ //check to see if checkbox is...
2
6606
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 via my code, but not upload a file. I'm using asp.net 1.1 and forms authentication.
1
10503
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 my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
2
2389
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 a problem on another server.... i upload my files to a new server but in the ASP file it returned me the Code in SOurce Code Back.. The code I used is: <!-- #include file="header-main.asp" --> the header file is in the same directory
5
7921
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 postings but I haven't seen any clear resolution.
0
9863
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9702
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10607
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7023
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3139
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.