Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

website photo upload


  • Please log in to reply

#1
nickt

nickt

    Banned

  • Banned
  • PipPip
  • 17 posts
i want to know how come the pics wont upload to the photo folder any steps i need to take to fix this what could be wrong or what file do i need to fix it seems like it uploads fine but its just a little icon u can try it on my website to see what im talking about www.trendspaces.com
  • 0

Advertisements


#2
thenotch

thenotch

    Member

  • Retired Staff
  • 667 posts
Pretty vague, not sure where you are speaking of...

My first guess would be that the folder does not have "write" permissions set.
Linux servers will require the folder to be chmod 777 to write to it.
  • 0

#3
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
is there any other reason this could be doing this i changed the writes to 777
  • 0

#4
Allsortgroup

Allsortgroup

    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
Is your server a linux one?
  • 0

#5
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
ya its linux
  • 0

#6
Allsortgroup

Allsortgroup

    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
So are you like making a folder on your folder say /images and say you put images in the like jpeg files.

Are you trying to put the images in your html pages? And what are they displaying like?
  • 0

#7
Allsortgroup

Allsortgroup

    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
Is it just coming up with a red cross in the corner of the image?
  • 0

#8
thenotch

thenotch

    Member

  • Retired Staff
  • 667 posts
check your paths...

you might need to provide an actual server path (ex. /home/nickt/public_html/images)
  • 0

#9
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
ya there is a red x should i edit a php file i was thinking about the img.php file to change the path
  • 0

#10
Allsortgroup

Allsortgroup

    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
Yes, that might be the problem or you might need to clear out your internet cookies and files.

:whistling:
  • 0

#11
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
could u help me with what file i need to edit
  • 0

#12
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
this is what it says in the img.php file

<?php
// include FormValidator class
include 'SPAF_FormValidator.class.php';

// start session
session_start();

// instantiate the object
$spaf_obj = new SPAF_FormValidator();

// stream image
$spaf_obj->streamImage();
?>
  • 0

#13
thenotch

thenotch

    Member

  • Retired Staff
  • 667 posts
I don't know a LOT about php coding, but that first include shouldn't it be:

include ('SPAF_FormValidator.class.php');

and then the actual path to that file if it is not root??
  • 0

#14
Allsortgroup

Allsortgroup

    I SPAMMED Too Much!

  • Banned
  • PipPipPip
  • 905 posts
In a html file, it is...

<img src="/images/image.jpg" />

You might need...

<img src="/home/nickt/public_html/images/image.jpg" />

:whistling:
  • 0

#15
nickt

nickt

    Banned

  • Topic Starter
  • Banned
  • PipPip
  • 17 posts
thanks it works now
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP