Results 1 to 8 of 8

Thread: Help Needed: File Upload to Server Script

  1. #1
    Join Date
    Feb 2007
    Location
    Melbourne Australia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Help Needed: File Upload to Server Script

    Hi
    Can Someone tell me how to how to do a file upload page, what are the script needed. PHP , HTML etc..
    Thanks
    If this is not clear please see this site, http://www.motobit.com/util/upload/old-upload.asp

    I need something like this. on my page.

    Thank you

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

  3. #3
    Join Date
    Feb 2007
    Location
    Melbourne Australia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Shachi Thanks for your link,
    That is what I exactly want, but i m getting an error , maybe you can help me or someone else.
    I did create a folder called upload, in my server Public_html and I have uploaded the upload.php file in that folder, then I can view the page, when I upload a file and submit, It wont upload.
    do I have to change the path in that PHP file. or I have to change CHMOD on that folder for permisons?? Please Help me
    I really appreciate.
    Nals

    Ohh this is the Error Page:

    phpSimpleUpload Version 3.0
    A simple script for uploading files!
    Upload Information
    File Name Size Type Upload
    Warning: move_uploaded_file(upload.txt) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/xxxxx/public_html/upload/upload.php on line 95
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpFc1sYC' to 'upload.txt' in /home/xxxxxx/public_html/upload/upload.php on line 95
    upload.txt 0 bytes text/plain Failure

    [ Upload More Files ]
    Last edited by Nals; 02-13-2007 at 07:12 AM.

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nals: you need to grant access to that folder. if you have ssh(and you server is *nix) do:

    Code:
    chmod a+w upload/

  5. #5
    Join Date
    Feb 2007
    Location
    Melbourne Australia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thank you Very much

    Shachi
    Great !!!!!!!!!!!!!!!!!!!!! It works
    Thanks for your help,

    I will come back with more Questions

  6. #6
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Why permission denies while uploading

    Warning: move_uploaded_file(1.jpg): failed to open stream: Permission denied in /var/www/vhosts/none.com/httpdocs/demo/sujan/upload.php on line 95

    Why this error comes while uploading file?
    Can anyone help me?

    Sujan

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    The setting is in your php .ini file. It won't let you use that function.
    - Mike

  8. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    or the permissions is set wrong on the directories or file itself.

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
  •