4 Replies Latest reply on Nov 20, 2007 9:57 PM by Keiko

    ImageResize

    Keiko

      Dear all,

      Let's say I have 2 processes:
      1. Upload an image using <input type="file">
      2. Resize the image using ImageResize

      My questions are:
      - how to let the system know when the process 1 is already completed and start with process 2?
      - Is it possible to upload the file from client's pc into my server's memory, resize it and save the file into my server?


      Looking forward for your reply.

      Thanks in advance
      Keiko

        • 1. Re: ImageResize
          Daverms Level 3
          Hi,

          1) You can check the upload status of your file using the "cffile.serverFile" parameter.

          2) Then specify the pathname relative to the web root in the "source" attribute of your <cfimage> tag with the action attribute set to="resize"

          HTH
          • 2. Re: ImageResize
            Level 7


            Keiko wrote:
            > Dear all,
            >
            > Let's say I have 2 processes:
            > 1. Upload an image using <input type="file">
            > 2. Resize the image using ImageResize
            >
            > My questions are:
            > - how to let the system know when the process 1 is already completed and start
            > with process 2?

            you do not have to do anything - cf will know when the file has finished
            uploading as long as you are using <cffile> to do it.

            > - Is it possible to upload the file from client's pc into my server's memory,
            > resize it and save the file into my server?
            >

            not possible. at least not without some client-side applet or activeX
            control?

            look into using cf's directorywatcher gateway as i suggested in reply to
            your other post.

            >
            > Looking forward for your reply.
            >
            > Thanks in advance
            > Keiko
            >
            >
            >



            ---
            Azadi Saryev
            Sabai-dee.com
            http://www.sabai-dee.com
            • 3. Re: ImageResize
              Keiko Level 1

              Thanks Daverms and Azadi for your replies.

              • 4. Re: ImageResize
                Keiko Level 1

                Thanks Daverms and Azadi for your replies.