SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,644
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    understanding the upload process

    Im trying to follow
    http://www.urlearn.com/phptut/image_upload.htm
    And installed it at
    http://fixmysite.us/asp/providers/upload/uploadform.php
    But why is the images extension not showing up? Is that the problem?
    \
    Thanks
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    We will need a bit more info on what your script is doing before anyone can say what the problem is.

    Generally speaking though on your form handling file, temporarily do this:
    PHP Code:
    <?php
    var_dump
    ($_FILES);
    and inspect the 'error' array - if it does not say 0 then there should be a big hint there.

    To be honest, I found the best thing to study is the entire file uploading part of the manual, there are many good explanations and hints on how to debug this kind of operation. It'll take you a while but is well worth studying word for word before attempting this kind of operation (see common pitfalls especially)

    http://php.net/manual/en/features.file-upload.php


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •