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

Image Uploading to a folder in classic ASP

I am trying to upload a image into a folder using classic asp. I am able to upload image into a folder but not getting the values of other input fields.

Expand|Select|Wrap|Line Numbers
  1. <%@ Language="VBScript" %> <form method=post
  2.   enctype="multipart/form-data"
  3.   action=<%=request.servervariables("script_name")%>>
  4. Your File:<BR><input type="file" name="YourFile"><BR> <input type="text" name="myname" id="name12"> <BR> <input type="submit" name="submit" value="Upload"> </form> <% Dim objUpload, lngLoop, cia
  5. If Request.TotalBytes > 0 Then
  6. Set objUpload = New vbsUpload
  7.  
  8. For lngLoop = 0 to objUpload.Files.Count - 1
  9. 'If accessing this page annonymously,
  10. 'the internet guest account must have
  11. 'write permission to the path below.
  12. objUpload.Files.Item(lngLoop).Save "c:\inetpub\wwwroot\puntoseguro\admin\image\"
  13.  
  14. Response.Write "File Uploaded"
  15.  
  16. Next
  17.  cia = Upload.Form("myname")
  18.  
  19. End if
  20. %>
  21.  
When I submit the form, I am getting the following error, File Uploaded Microsoft VBScript runtime error '800a01a8'

Object required: ''

/admin/test.asp, line 26

line 26 - cia = Upload.Form("myname")
Jun 30 '15 #1
0 3028

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom | last post by:
Hi, I created a webform with asp.net and c#. I need to upload image to server and record the path to that image in DB. Any sample code for image uploading? Thanks for help Tom
2
kamill
by: kamill | last post by:
Dear All, I am uploading a image file and after resize the image i am saving it. My script is working fine with small size images but when i am trying to upload big size image, i am getting below...
4
by: Zarich | last post by:
This is a part of a code that i use to upload a video and a picture,but i want to modify the img part to upload the file in a diferent folder and i don't want it to create an unique folder for each...
3
Raju B
by: Raju B | last post by:
hi friends i had written a code for uploading image.but it showing error like failed to open stream on line 61.please go through my code and suggest me. <?php //include 'include/dbconnect.php';...
0
by: readbanana | last post by:
I am trying to upload images to the ftp. I need to have it in a compressed folder called by a specific name and then upload that folder to a specific directory. Each time I try, I get an error The...
3
by: mohan lal | last post by:
Hi.. I have a form for storing the details of a student In that form there is a field for uploading the student image .How can i display the image preview of a student ? If anyone knows please...
0
ilya Kraft
by: ilya Kraft | last post by:
Hello, Alright, so I came across the following problem. I have system where users can upload their profile images. Images get stored in folders with member id's. The issue is: When user uploads...
11
ilya Kraft
by: ilya Kraft | last post by:
Hello, I need to select image from a member folder to set it as their profile image. The problem is that I don't know how to do this, because that image has no fixed name or extension, so every...
2
by: sam thush | last post by:
In my web site there are 5 image uploading sections. I want to validate them by size,width,height and type.can any one help me to cover this task by PHP.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.