AspUpload question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • the other john

    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!!

  • Kyle Peterson

    #2
    Re: AspUpload question

    after your Server.CreateOb ject call

    use this format... example

    Album_ID = Upload.form("Al bum_ID")
    NewAd = Upload.form("Ne wAd")
    PicNumber = Upload.form("Pi cNumber")

    it's all in their docs




    "the other john" <kinane3@yahoo. comwrote in message
    news:1154611053 .783862.144880@ b28g2000cwb.goo glegroups.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!!
    >

    Comment

    • the other john

      #3
      Re: AspUpload question

      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("F ILE1") <"" Then
      rsPicData("fld_ picture_picNumb er") = 1
      ElseIf Upload.Files("F ILE2") <"" Then
      rsPicData("fld_ picture_picNumb er") = 2
      ElseIf Upload.Files("F ILE3") <"" Then
      rsPicData("fld_ picture_picNumb er") = 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.CreateOb ject call
      >
      use this format... example
      >
      Album_ID = Upload.form("Al bum_ID")
      NewAd = Upload.form("Ne wAd")
      PicNumber = Upload.form("Pi cNumber")
      >
      it's all in their docs
      >
      >
      >
      >
      "the other john" <kinane3@yahoo. comwrote in message
      news:1154611053 .783862.144880@ b28g2000cwb.goo glegroups.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!!

      Comment

      • the other john

        #4
        Re: AspUpload question

        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("F ILE1") <"" Then
        rsPicData("fld_ picture_picNumb er") = 1
        ElseIf Upload.Files("F ILE2") <"" Then
        rsPicData("fld_ picture_picNumb er") = 2
        ElseIf Upload.Files("F ILE3") <"" Then
        rsPicData("fld_ picture_picNumb er") = 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.CreateOb ject call

        use this format... example

        Album_ID = Upload.form("Al bum_ID")
        NewAd = Upload.form("Ne wAd")
        PicNumber = Upload.form("Pi cNumber")

        it's all in their docs




        "the other john" <kinane3@yahoo. comwrote in message
        news:1154611053 .783862.144880@ b28g2000cwb.goo glegroups.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!!
        >

        Comment

        • Kyle Peterson

          #5
          Re: AspUpload question

          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" <kinane3@yahoo. comwrote in message
          news:1154699488 .359114.213510@ m79g2000cwm.goo glegroups.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("F ILE1") <"" Then
          >rsPicData("fld _picture_picNum ber") = 1
          >ElseIf Upload.Files("F ILE2") <"" Then
          >rsPicData("fld _picture_picNum ber") = 2
          >ElseIf Upload.Files("F ILE3") <"" Then
          >rsPicData("fld _picture_picNum ber") = 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.CreateOb ject call
          >
          use this format... example
          >
          Album_ID = Upload.form("Al bum_ID")
          NewAd = Upload.form("Ne wAd")
          PicNumber = Upload.form("Pi cNumber")
          >
          it's all in their docs
          >
          >
          >
          >
          "the other john" <kinane3@yahoo. comwrote in message
          news:1154611053 .783862.144880@ b28g2000cwb.goo glegroups.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!!
          >
          >

          Comment

          • the other john

            #6
            Re: AspUpload question

            I did that and I was going nuts because I couldn't find a
            solution...unti l now, yes!!!!!

            This is what I ended up doing..

            If File.Name = "FILE1" Then
            rsPicData("fld_ picture_picNumb er") = 1
            ElseIf File.Name = "FILE2" Then
            rsPicData("fld_ picture_picNumb er") = 2
            ElseIf File.Name = "FILE3" Then
            rsPicData("fld_ picture_picNumb er") = 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" <kinane3@yahoo. comwrote in message
            news:1154699488 .359114.213510@ m79g2000cwm.goo glegroups.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("F ILE1") <"" Then
            rsPicData("fld_ picture_picNumb er") = 1
            ElseIf Upload.Files("F ILE2") <"" Then
            rsPicData("fld_ picture_picNumb er") = 2
            ElseIf Upload.Files("F ILE3") <"" Then
            rsPicData("fld_ picture_picNumb er") = 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.CreateOb ject call

            use this format... example

            Album_ID = Upload.form("Al bum_ID")
            NewAd = Upload.form("Ne wAd")
            PicNumber = Upload.form("Pi cNumber")

            it's all in their docs




            "the other john" <kinane3@yahoo. comwrote in message
            news:1154611053 .783862.144880@ b28g2000cwb.goo glegroups.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!!
            >

            Comment

            Working...