Adding upload funtion

Discussion in 'Web Design' started by danbnpp, Sep 3, 2012.

to remove all ads.
  1. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    No idea are you going to tells where we can see the problem?

    because adding "/uploads/" to the earlier URL responds with a 404.

    755 so only the 'owner' account has write access.
     
  2. danbnpp

    danbnpp New Member

    Messages:
    42
    Not sure what exactly you mean but I'll guess it's a url I need to post so here it is, http://www.nimbusplanetproductions.com/photos/ I'm not really worried about who can upload stuff cause not many are going there. The link is on the bottom of the page. Ok so how can I better help you to help me?
     
  3. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    You should be, especially when the hackers find it, bypass your upload form and drop a file called picture.php.jpg and attack your server from the inside.
     
  4. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    Why is it not working??

    Probably because /uploads/ and /photos/ are not the same directory and uploads doesn't appear to exist on your server.

    www nimbusplanetproductions.com/uploads/

    By the way Upload Picks?
     
  5. danbnpp

    danbnpp New Member

    Messages:
    42
    Yeah I still need to change that, I was in a rush and my mind works faster than my fingers sometimes. Ok so I'll change the folder location and permissions on the folder to 755 or what you said.
    [edit] So I set the folder to 755 and fixed my link and found three pics in the folder called uploads, these files wern't there yesterday. Does this mean there is a delay in when they are acessable? The uploads folder does exist in the photos folder wher the files sit. This was easier that figuring out the exact url, not like it's hard but at the moment it was simple.
     
    Last edited: Sep 9, 2012
  6. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    No delay at all, they should be available the instant that the upload completes. And one of the three images will be of a large hole in the ground and I can't recall what the other one was :)


    so the path to that folder should be
    HTML:
    site.tld/photos/uploads/
    as it is a subfolder of photos. (I'm working on a "URL references for dummies" article :) )
     
  7. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    By the way, just in case you were wondering;

    I have a picture of a hole in the ground because I was working on a composite image of a donkey's hind quarters plus a 'hole' to use as a word replacement on my forum / blog / article / random ramblings website.

    So I'm not mad (My Mother had me tested!)
     
  8. danbnpp

    danbnpp New Member

    Messages:
    42
    Well I did see the two pics you uploaded in the uploads folder, the other pic was the grand canyon. I'll go back and edit the php script but the pics not showing automaticly is odd though. I'll have to check with go daddy on why that happens. But anyways I would like to say thank you for all the help, I really appriciate it.
     
  9. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    Ah that was the one, so the upload is working as it should then. though I wouldn't anticipate much help from GoDaddy in that direction.

    The reason why the images do noy appear on the photos page is they are not in the correct folder for a start.

    Does your script for that URL /photos/ read the directory and create image elements in the source or do you have to add them manually?
     
  10. danbnpp

    danbnpp New Member

    Messages:
    42
    Not sure what you mean by that, I know the upload script I posted is what is being used at the moment. The script for uploads and the page is in the photos folder along with uploads. The uploaded pics are only viewable in ftp as I am going to post them some how later on. I have a few social media clones I got ahold of and I'm checking out how it's all put together so maybe I can find out how to get the uploaded pics to post as fans upload pics. I got the script from w3 website since everything I looked at wasn't working.
     
  11. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    Unless your "photos" page reads the files in the uploads folder (like FTP does) NOTHING will appear on your "photos page" UNLESS you add the <img src="path/image.ext" alt=""> to the document.
     
  12. danbnpp

    danbnpp New Member

    Messages:
    42
    Well my intent was to check the folder using ftp and then move the pics and add them as they were uploaded, well that was untill yesterday when I was replying to your post that I decided to look into ways of having them appear on a page after they are uploaded. I'll have to research that.
     
  13. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,672
    Why not use something like PixelPost so people can add their own captions or story to the picture?

    Or Menalto Gallery
     
    Last edited: Sep 12, 2012
  14. danbnpp

    danbnpp New Member

    Messages:
    42
    Actually that is a good idea, I wanted to be able to let people add captions and suff to their pics when they upload them. I'll check out the two links, thanks for the advice.
     

Share This Page