How can I upload images from a basic client?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron Brennan

    How can I upload images from a basic client?

    Good morning.

    I would like to allow a user to browse his local directories, choose an
    image (probably .jpeg) file, and upload it to the server (a servlet). The
    same functionality that online datiing agencies use to let people save their
    photograph with their profiles. (My application is an online Want Ads.)

    I feel that this must be possible within a minimal client (without a JVM)
    using nothing more than JavaScript, but I'll be damned if I can find how.

    Would one of you more experienced JavaScript people please point me in the
    right direction.

    Thank you,
    Ron.





  • Murray

    #2
    Re: How can I upload images from a basic client?


    "Ron Brennan" <rbrennan@magma .ca> wrote in message
    news:prudnZFoZd _dbAHdRVn-vA@magma.ca...[color=blue]
    > Good morning.
    >
    > I would like to allow a user to browse his local directories, choose an
    > image (probably .jpeg) file, and upload it to the server (a servlet). The
    > same functionality that online datiing agencies use to let people save[/color]
    their[color=blue]
    > photograph with their profiles. (My application is an online Want Ads.)
    >
    > I feel that this must be possible within a minimal client (without a JVM)
    > using nothing more than JavaScript, but I'll be damned if I can find how.
    >
    > Would one of you more experienced JavaScript people please point me in the
    > right direction.
    >
    > Thank you,
    > Ron.[/color]

    TikTok is a popular short-video social media platform owned by Bytedance. It is widely used and has millions of active users around the world.




    Comment

    • Murray

      #3
      Re: How can I upload images from a basic client?


      "Murray" <parps@SPAMoffS PAMMER.optusSP4 Mnet.com.au> wrote in message
      news:409d0937$0 $25657$afc38c87 @news.optusnet. com.au...[color=blue]
      >
      > "Ron Brennan" <rbrennan@magma .ca> wrote in message
      > news:prudnZFoZd _dbAHdRVn-vA@magma.ca...[color=green]
      > > Good morning.
      > >
      > > I would like to allow a user to browse his local directories, choose an
      > > image (probably .jpeg) file, and upload it to the server (a servlet).[/color][/color]
      The[color=blue][color=green]
      > > same functionality that online datiing agencies use to let people save[/color]
      > their[color=green]
      > > photograph with their profiles. (My application is an online Want Ads.)
      > >
      > > I feel that this must be possible within a minimal client (without a[/color][/color]
      JVM)[color=blue][color=green]
      > > using nothing more than JavaScript, but I'll be damned if I can find[/color][/color]
      how.[color=blue][color=green]
      > >
      > > Would one of you more experienced JavaScript people please point me in[/color][/color]
      the[color=blue][color=green]
      > > right direction.
      > >
      > > Thank you,
      > > Ron.[/color]
      >
      > http://www.jguru.com/faq/view.jsp?EID=160[/color]

      No Javascript is necessary btw.


      Comment

      • Ron Brennan

        #4
        Re: How can I upload images from a basic client?

        Much appreciated; thank you Murry.

        "Ron Brennan" <rbrennan@magma .ca> wrote in message
        news:prudnZFoZd _dbAHdRVn-vA@magma.ca...[color=blue]
        > Good morning.
        >
        > I would like to allow a user to browse his local directories, choose an
        > image (probably .jpeg) file, and upload it to the server (a servlet). The
        > same functionality that online datiing agencies use to let people save[/color]
        their[color=blue]
        > photograph with their profiles. (My application is an online Want Ads.)
        >
        > I feel that this must be possible within a minimal client (without a JVM)
        > using nothing more than JavaScript, but I'll be damned if I can find how.
        >
        > Would one of you more experienced JavaScript people please point me in the
        > right direction.
        >
        > Thank you,
        > Ron.
        >
        >
        >
        >
        >[/color]


        Comment

        • Saint Jude

          #5
          Re: How can I upload images from a basic client?

          "Ron Brennan" <rbrennan@magma .ca> wrote in message news:<prudnZFoZ d_dbAHdRVn-vA@magma.ca>...[color=blue]
          > Good morning.
          >
          > I would like to allow a user to browse his local directories, choose an
          > image (probably .jpeg) file, and upload it to the server (a servlet).[/color]

          I don't believe this is so much of a JavaScript matter (depending on
          requirements). Use the HTML form element, <input type="file">, and
          post the form. How it is dealt with at the server varies by language.
          I know it is relatively easy in PHP, and very difficult in ASP.

          Comment

          • Ron Brennan

            #6
            Re: How can I upload images from a basic client?

            Yes, that was the method described and expanded on at the link Murry
            provided. It also provides a Browse button, which I also need. Thanks.


            "Saint Jude" <thejuliankenne dy@hotmail.com> wrote in message
            news:d96f0d11.0 405080948.58023 3df@posting.goo gle.com...[color=blue]
            > "Ron Brennan" <rbrennan@magma .ca> wrote in message[/color]
            news:<prudnZFoZ d_dbAHdRVn-vA@magma.ca>...[color=blue][color=green]
            > > Good morning.
            > >
            > > I would like to allow a user to browse his local directories, choose an
            > > image (probably .jpeg) file, and upload it to the server (a servlet).[/color]
            >
            > I don't believe this is so much of a JavaScript matter (depending on
            > requirements). Use the HTML form element, <input type="file">, and
            > post the form. How it is dealt with at the server varies by language.
            > I know it is relatively easy in PHP, and very difficult in ASP.[/color]


            Comment

            Working...