473,671 Members | 2,376 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 3017
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
2007
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
3431
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
2838
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
3579
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
6801
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
6599
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
10479
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
2380
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
7914
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
8478
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
8397
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
8919
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
8821
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
8599
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
8670
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1810
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.