473,386 Members | 1,738 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,386 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 1298
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....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
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,...

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.