Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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
  • 668 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
  • 668 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
  • 668 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