Adding upload funtion

chrishirst

Well-Known Member
Staff member
So why isn't it showing up?
No idea are you going to tells where we can see the problem?

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

And what should the permission on the folder be set at?
755 so only the 'owner' account has write access.
 

danbnpp

New Member
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.
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?
 

chrishirst

Well-Known Member
Staff member
I'm not really worried about who can upload stuff cause not many are going there
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.
 

chrishirst

Well-Known Member
Staff member
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?
 

danbnpp

New Member
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?

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:

chrishirst

Well-Known Member
Staff member
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 :)


The uploads folder does exist in the photos folder wher the files sit.
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 :) )
 

chrishirst

Well-Known Member
Staff member
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!)
 

danbnpp

New Member
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.
 

chrishirst

Well-Known Member
Staff member
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?
 

danbnpp

New Member
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.
 

chrishirst

Well-Known Member
Staff member
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.
 

danbnpp

New Member
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.
 

danbnpp

New Member
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.
 
Top