472,354 Members | 1,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

AspUpload question

I'm not certain that what I'm asking is an AspUpload question or just a
VBScript question.

I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database. When
the story is called it will deliver 3 pictures in specific places so I
need to identify which is which when when the loop executes. Picture 1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?

Thanks!!

Aug 3 '06 #1
5 1245
after your Server.CreateObject call

use this format... example

Album_ID = Upload.form("Album_ID")
NewAd = Upload.form("NewAd")
PicNumber = Upload.form("PicNumber")

it's all in their docs


"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I'm not certain that what I'm asking is an AspUpload question or just a
VBScript question.

I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database. When
the story is called it will deliver 3 pictures in specific places so I
need to identify which is which when when the loop executes. Picture 1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?

Thanks!!

Aug 3 '06 #2
Thanks Kyle. The trouble Im having however is how do I identify which
file is being processed while it is being processed?

I tried this but it's not working...

If Upload.Files("FILE1") <"" Then
rsPicData("fld_picture_picNumber") = 1
ElseIf Upload.Files("FILE2") <"" Then
rsPicData("fld_picture_picNumber") = 2
ElseIf Upload.Files("FILE3") <"" Then
rsPicData("fld_picture_picNumber") = 3
Else
'don't do jack
End if

What I need to do is to be able to put into the database which picture
is which so when it's delivered each will be in the place the user
wants it placed.

Thanks again!

Kyle Peterson wrote:
after your Server.CreateObject call

use this format... example

Album_ID = Upload.form("Album_ID")
NewAd = Upload.form("NewAd")
PicNumber = Upload.form("PicNumber")

it's all in their docs


"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I'm not certain that what I'm asking is an AspUpload question or just a
VBScript question.

I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database. When
the story is called it will deliver 3 pictures in specific places so I
need to identify which is which when when the loop executes. Picture 1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?

Thanks!!
Aug 3 '06 #3
I might not have been clear enough...or maybe no one knows...

When using AspUpload while iterating though the For Each loop is there
a way to identify "which" file is being processed while it's being
processed? I need to uniquely identify which file is which (pictures
in this case) so I can place each picture in a specific place on the
front end. How does AspUpload decide which file to process first?
last? If I know that maybe I can solve this.

Thanks everyone!!
the other john wrote:
Thanks Kyle. The trouble Im having however is how do I identify which
file is being processed while it is being processed?

I tried this but it's not working...

If Upload.Files("FILE1") <"" Then
rsPicData("fld_picture_picNumber") = 1
ElseIf Upload.Files("FILE2") <"" Then
rsPicData("fld_picture_picNumber") = 2
ElseIf Upload.Files("FILE3") <"" Then
rsPicData("fld_picture_picNumber") = 3
Else
'don't do jack
End if

What I need to do is to be able to put into the database which picture
is which so when it's delivered each will be in the place the user
wants it placed.

Thanks again!

Kyle Peterson wrote:
after your Server.CreateObject call

use this format... example

Album_ID = Upload.form("Album_ID")
NewAd = Upload.form("NewAd")
PicNumber = Upload.form("PicNumber")

it's all in their docs


"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I'm not certain that what I'm asking is an AspUpload question or just a
VBScript question.
>
I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database. When
the story is called it will deliver 3 pictures in specific places so I
need to identify which is which when when the loop executes. Picture 1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?
>
Thanks!!
>
Aug 4 '06 #4
look at their example codes... they provide plenty of examples of dealing
with multiple files during upload..

really it's best to ask them though

"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
>I might not have been clear enough...or maybe no one knows...

When using AspUpload while iterating though the For Each loop is there
a way to identify "which" file is being processed while it's being
processed? I need to uniquely identify which file is which (pictures
in this case) so I can place each picture in a specific place on the
front end. How does AspUpload decide which file to process first?
last? If I know that maybe I can solve this.

Thanks everyone!!
the other john wrote:
>Thanks Kyle. The trouble Im having however is how do I identify which
file is being processed while it is being processed?

I tried this but it's not working...

If Upload.Files("FILE1") <"" Then
rsPicData("fld_picture_picNumber") = 1
ElseIf Upload.Files("FILE2") <"" Then
rsPicData("fld_picture_picNumber") = 2
ElseIf Upload.Files("FILE3") <"" Then
rsPicData("fld_picture_picNumber") = 3
Else
'don't do jack
End if

What I need to do is to be able to put into the database which picture
is which so when it's delivered each will be in the place the user
wants it placed.

Thanks again!

Kyle Peterson wrote:
after your Server.CreateObject call

use this format... example

Album_ID = Upload.form("Album_ID")
NewAd = Upload.form("NewAd")
PicNumber = Upload.form("PicNumber")

it's all in their docs


"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I'm not certain that what I'm asking is an AspUpload question or just
a
VBScript question.

I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while
iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database.
When
the story is called it will deliver 3 pictures in specific places so
I
need to identify which is which when when the loop executes. Picture
1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?

Thanks!!

Aug 4 '06 #5
I did that and I was going nuts because I couldn't find a
solution...until now, yes!!!!!

This is what I ended up doing..

If File.Name = "FILE1" Then
rsPicData("fld_picture_picNumber") = 1
ElseIf File.Name = "FILE2" Then
rsPicData("fld_picture_picNumber") = 2
ElseIf File.Name = "FILE3" Then
rsPicData("fld_picture_picNumber") = 3
Else
'don't do jack
End if

This works. I was getting confused with File.Name and File.FileName.
HTH others in the future.
Kyle Peterson wrote:
look at their example codes... they provide plenty of examples of dealing
with multiple files during upload..

really it's best to ask them though

"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
I might not have been clear enough...or maybe no one knows...

When using AspUpload while iterating though the For Each loop is there
a way to identify "which" file is being processed while it's being
processed? I need to uniquely identify which file is which (pictures
in this case) so I can place each picture in a specific place on the
front end. How does AspUpload decide which file to process first?
last? If I know that maybe I can solve this.

Thanks everyone!!
the other john wrote:
Thanks Kyle. The trouble Im having however is how do I identify which
file is being processed while it is being processed?

I tried this but it's not working...

If Upload.Files("FILE1") <"" Then
rsPicData("fld_picture_picNumber") = 1
ElseIf Upload.Files("FILE2") <"" Then
rsPicData("fld_picture_picNumber") = 2
ElseIf Upload.Files("FILE3") <"" Then
rsPicData("fld_picture_picNumber") = 3
Else
'don't do jack
End if

What I need to do is to be able to put into the database which picture
is which so when it's delivered each will be in the place the user
wants it placed.

Thanks again!

Kyle Peterson wrote:
after your Server.CreateObject call

use this format... example

Album_ID = Upload.form("Album_ID")
NewAd = Upload.form("NewAd")
PicNumber = Upload.form("PicNumber")

it's all in their docs


"the other john" <ki*****@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I'm not certain that what I'm asking is an AspUpload question or just
a
VBScript question.
>
I am uploading a story with up to 3 pictures. Each picture uploads
using aspupload with no problems. What I need to do is while
iterating
through the for each loop for each picture I need to identify each
picture as "picture_1", "picture_2", "picture_3" in the database.
When
the story is called it will deliver 3 pictures in specific places so
I
need to identify which is which when when the loop executes. Picture
1
goes here, etc. What's confusing me is I can't use Request.Form
because it uses multipart/form-data. Will this just be a matter of
using If Then?
>
Thanks!!
>
Aug 4 '06 #6

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

Similar topics

3
by: John Rebbeck | last post by:
(sorry about cross posting but I really need help with this and it fits in both newsgroups) I'm creating a little image manager and I'm using Persits ASPUpload. I have an UploadButton and...
2
by: | last post by:
I am using aspupload in a hosting environment. When testing the basic install of the component I am trying to use the default forms provided. When using the the first method as found at...
1
by: | last post by:
I am using ASPUpload and trying to upload images to a database. I have had success in getting the image to the db and then dispalying the imnage on a webpage. The problem is wheni have more than one...
1
by: Nakedwalls | last post by:
Hi everyone, I've not really had much experience of ASPUpload yet, so some help would be much appreciated!. What I'm trying to do is upload an image (which I've managed with the sample code...
6
by: Vilmar Brazão de Oliveira | last post by:
HI; How can I rename a file with aspupload or FSO before upload? I looked for in documentation of these products, but I could not find anything yet! Thanks, -- ««««««««»»»»»»»»»»»»»»
2
by: Vilmar Brazão de Oliveira | last post by:
Hi, How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet. thanks, -- ««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira...
5
by: Kelli | last post by:
Hi there, I'm wondering if someone can have a quick look at my code and see if there's anything that I've done wrong. This silly script is driving me crazy! <% DIM File, Upload, Count,...
8
by: BigJohnson | last post by:
We're using ASPUpload as a tool to upload files to our server and save the details to SQLServer. However, I have an application where I need to return the pkID of the just saved file. I'm assuming...
0
by: hellind | last post by:
When the form is submitted as ENCTYPE="multipart/form-data" using AspUpload component, I understand to use Upload.form("") to retreive the form elements. But I cannot retreive it from inside a class....
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.