Loading ...
Sorry, an error occurred while loading the content.
 

Re: Uploader problem

Expand Messages
  • zekenie
    Uploader.upload(idToUpload, ... is correct and pointed to my php file) size is not an issue because the php file file accepts info from another form. size is
    Message 1 of 6 , Jun 30, 2008
      Uploader.upload(idToUpload, ... is correct and pointed to my php file)
      size is not an issue because the php file file accepts info from another form.
      size is not the problem
      swf asset not linked from yahoo, its on my site

      I'm trying to look at my server's log... What am I looking for. All i have is the raw log files
      and its really hard to go through them and find the problem. What am I even looking for...

      I see things like:
      76.230.132.1 - - [30/Jun/2008:08:52:08 -0700] "GET
      /webplanner.com/tests/uploadTest.php HTTP/1.1" 200 1816 "-" "Mozilla/5.0 (Macintosh;
      U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
      76.230.132.1 - - [30/Jun/2008:08:52:15 -0700] "POST
      /webplanner.com/tests/uploadFile.php HTTP/1.1" 200 21
      "http://webplanner.com/tests/uploadTest.php" "Mozilla/5.0 (Macintosh; U; Intel Mac OS
      X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
      76.230.132.1 - - [30/Jun/2008:08:52:57 -0700] "POST
      /webplanner.com/app/yui/build/uploader/assets/uploadFile.php HTTP/1.1" 404 313 "-"
      "Adobe Flash Player 9"

      Any help would be awesome!

      -Zeke
      --- In ydn-javascript@yahoogroups.com, "dsmith21401" <dc_webmastr@...> wrote:
      >
      > It could be a lot of things. First, make sure the path to the upload
      > handler file is correct. And the handler MUST be pointing to a file,
      > not just a directory. For example:
      >
      > uploader.upload(idToUpload, '/useruploads/index.cfm')
      >
      > NOT
      >
      > uploader.upload(idToUpload, '/useruploads/')
      >
      > Second, look at your web server logs...talking about Apache or IIS,
      > whatever is your backend. Sometimes these logs provide extra info.
      >
      > Third, what is the file size you are attempting to upload? While
      > there is a 2Gb hard-limit imposed by Flash because it is a 32-bit
      > program, your web server and/or php app server might have their own
      > limits. If you built a basic HTML form and it went through, that
      > means your web server (apache/iis) probably don't have a limit, but
      > if you used PHP and it stops working, then maybe there is a limit
      > there.
      >
      > Fourth, make sure the SWF asset is on your server and not linked from
      > Yahoo or any other domain (cross-domain issues).
      >
      > If you still can't figure out, please post your code and more
      > specifics about your setup.
      >
    • zekenie
      More Info: I m using apache and php 5 as a webserver. My browser is the mac firefox. I m using the advanced example code... almost exactly.... here is my php
      Message 2 of 6 , Jun 30, 2008
        More Info:
        I'm using apache and php 5 as a webserver. My browser is the mac firefox.

        I'm using the advanced example code... almost exactly....

        here is my php file:
        <?php
        foreach ($_FILES as $fieldName => $file) {
        move_uploaded_file($file['tmp_name'], "./" . $file['name']);
        echo (" ");
        }
        exit; ?>

        The permissions are set to 777, right now.

        --- In ydn-javascript@yahoogroups.com, "zekenie" <zekenie@...> wrote:
        >
        > Uploader.upload(idToUpload, ... is correct and pointed to my php file)
        > size is not an issue because the php file file accepts info from another form.
        > size is not the problem
        > swf asset not linked from yahoo, its on my site
        >
        > I'm trying to look at my server's log... What am I looking for. All i have is the raw log
        files
        > and its really hard to go through them and find the problem. What am I even looking
        for...
        >
        > I see things like:
        > 76.230.132.1 - - [30/Jun/2008:08:52:08 -0700] "GET
        > /webplanner.com/tests/uploadTest.php HTTP/1.1" 200 1816 "-" "Mozilla/5.0
        (Macintosh;
        > U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
        > 76.230.132.1 - - [30/Jun/2008:08:52:15 -0700] "POST
        > /webplanner.com/tests/uploadFile.php HTTP/1.1" 200 21
        > "http://webplanner.com/tests/uploadTest.php" "Mozilla/5.0 (Macintosh; U; Intel Mac OS
        > X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
        > 76.230.132.1 - - [30/Jun/2008:08:52:57 -0700] "POST
        > /webplanner.com/app/yui/build/uploader/assets/uploadFile.php HTTP/1.1" 404 313 "-
        "
        > "Adobe Flash Player 9"
        >
        > Any help would be awesome!
        >
        > -Zeke
        > --- In ydn-javascript@yahoogroups.com, "dsmith21401" <dc_webmastr@> wrote:
        > >
        > > It could be a lot of things. First, make sure the path to the upload
        > > handler file is correct. And the handler MUST be pointing to a file,
        > > not just a directory. For example:
        > >
        > > uploader.upload(idToUpload, '/useruploads/index.cfm')
        > >
        > > NOT
        > >
        > > uploader.upload(idToUpload, '/useruploads/')
        > >
        > > Second, look at your web server logs...talking about Apache or IIS,
        > > whatever is your backend. Sometimes these logs provide extra info.
        > >
        > > Third, what is the file size you are attempting to upload? While
        > > there is a 2Gb hard-limit imposed by Flash because it is a 32-bit
        > > program, your web server and/or php app server might have their own
        > > limits. If you built a basic HTML form and it went through, that
        > > means your web server (apache/iis) probably don't have a limit, but
        > > if you used PHP and it stops working, then maybe there is a limit
        > > there.
        > >
        > > Fourth, make sure the SWF asset is on your server and not linked from
        > > Yahoo or any other domain (cross-domain issues).
        > >
        > > If you still can't figure out, please post your code and more
        > > specifics about your setup.
        > >
        >
      • dsmith21401
        I think I see your problem. It is a 404 (not found error). POST /webplanner.com/app/yui/build/uploader/assets/uploadFile.php HTTP/1.1 404 You might need to
        Message 3 of 6 , Jul 3, 2008
          I think I see your problem. It is a 404 (not found error).

          POST /webplanner.com/app/yui/build/uploader/assets/uploadFile.php
          HTTP/1.1" 404

          You might need to set a fixed path to your uploadFile.php script, not
          a relative path, because your code is looking for "uploadFile.php" in
          the uploader/assets folder and I bet it's not there. From the line
          above it in your log it looks like your script is here:
          webplanner.com/tests/uploadFile.php. So please reconcile this.

          Again, post your YUI source code if you want more help. Also, this
          goes to show how much valuable info you can get out of your log. Any
          error code in your log that starts with a 4** or a 5** is bad, i.e.,
          404 or 500.

          > > I see things like:
          > > 76.230.132.1 - - [30/Jun/2008:08:52:08 -0700] "GET
          > > /webplanner.com/tests/uploadTest.php HTTP/1.1" 200 1816 "-
          " "Mozilla/5.0
          > (Macintosh;
          > > U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404
          Firefox/2.0.0.14"
          > > 76.230.132.1 - - [30/Jun/2008:08:52:15 -0700] "POST
          > > /webplanner.com/tests/uploadFile.php HTTP/1.1" 200 21
          > > "http://webplanner.com/tests/uploadTest.php" "Mozilla/5.0
          (Macintosh; U; Intel Mac OS
          > > X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14"
          > > 76.230.132.1 - - [30/Jun/2008:08:52:57 -0700] "POST
          > > /webplanner.com/app/yui/build/uploader/assets/uploadFile.php
          HTTP/1.1" 404 313 "-
          > "
        Your message has been successfully submitted and would be delivered to recipients shortly.