Closed Thread
Results 1 to 4 of 4

Thread: php file upload not working >

  1. #1
    Member akp35 is on a distinguished road
    Join Date
    May 2011
    Posts
    30

    php file upload not working >

    Hi,

    I am not able to upload files to an "uploads" folder that i have made within my domain public_html folder..

    I have already given 777 permissions to this folder, still no luck..

    here is the php file that processes the form.html, where i upload files

    --------------------------------------------
    <?php session_start();

    //variables

    $target = "/upload/resume;
    $target = $target . basename( $_FILES['resume']['name']);


    //Writes the files to the upload path
    (move_uploaded_file($_FILES['resume']['tmp_name'],$target))





    ?>

    ----------------------------------------------
    please help..
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  2. #2
    Moderator Expert is on a distinguished road Expert's Avatar
    Join Date
    Jul 2010
    Location
    Host1free.com
    Posts
    590

    Re: php file upload not working >

    we have disabled certain function, which was misused by some users.
    May be it is causing trouble, also what is the size of file you are uploading?
    Expert
    Technical Support Team
    Host1Free.com
    No Support via Private Messages

    Always follow the Terms of Service, to keep your Account active
    Read this before starting thread - Click Here

    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  3. #3
    Member akp35 is on a distinguished road
    Join Date
    May 2011
    Posts
    30

    Re: php file upload not working >

    actually i had accidently set the enctype on the html form to accept-charset="utf-8" rather than enctype="multipart/form-data"

    as soon as i fixed it, started working..

    thanks,
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  4. #4
    Moderator Expert is on a distinguished road Expert's Avatar
    Join Date
    Jul 2010
    Location
    Host1free.com
    Posts
    590

    Re: php file upload not working >

    Glad to hear that your problem solved.
    Thread Closed.
    Expert
    Technical Support Team
    Host1Free.com
    No Support via Private Messages

    Always follow the Terms of Service, to keep your Account active
    Read this before starting thread - Click Here

    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Closed Thread

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34