Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: HTTP Upload troubles  (Read 4434 times)

0 Members and 1 Guest are viewing this topic.

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
HTTP Upload troubles
« on: July 19, 2006, 06:30:15 am »

My name is Justin, and while I am not a newb when it comes to computers, the situation I am in now has got me quite perplexed. I was reading some of the of the other topics I have one thats similar. My hosting company, powweb.com has changed hands... therefore redone some of the way things are done. I do have access to my php.ini file and I have modded that to fit my reqirements, as well checked all my folders to be set at chmod of 755. My error is that basicly I can not upload files via http. Actually nobody that is registered can. I am running 1.4.8 on my server as well.  I have also changed the settings to allow one upload at a time and no uri files. I have created a test account for people to try as well.
My website is. www.thatstits.com
or more work friendly,
www.jczech.com

User id= test
pwsd= trouble


Let me know if you need anything else

Thanks

Justin
« Last Edit: July 26, 2006, 06:58:15 pm by Abbas Ali »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #2 on: July 19, 2006, 12:15:03 pm »

Already been through that document many times. What specific part are you refering to?
I have followed the proccess within that doc, and within other posts on this page. That is why I posted a thread requesting support, basicly stating I have been through all of those steps. That is why I have not posted a debug, becasue I have not been asked to do so yet.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: HTTP Upload troubles
« Reply #3 on: July 19, 2006, 12:24:27 pm »

"Enable debug mode for everyone" is the specific part we are looking for.
Logged
Chief Geek at Ranium Systems

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #4 on: July 19, 2006, 03:06:29 pm »

I apologize. Debug mode was on, but only for admin. I also have enabled the debug notices.

Debug is one for everyone.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: HTTP Upload troubles
« Reply #5 on: July 19, 2006, 04:56:48 pm »

Does your server allow http uploads?
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #6 on: July 19, 2006, 05:32:13 pm »

yes, it is set in the php.ini to allow uploads.
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #7 on: July 20, 2006, 12:28:41 am »

anyone? I don't like leaving my debug on and open for everyone to see for a long time.
Logged

Nibbler

  • Guest
Re: HTTP Upload troubles
« Reply #8 on: July 20, 2006, 12:49:53 am »

Try asking your host for support or testing with a simple upload script.
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #9 on: July 20, 2006, 01:13:20 am »

everything looks fine then from configuration standpoint, correct?

If so I will take off debug mode, and ask my host what is going on.
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #10 on: July 26, 2006, 05:06:31 pm »

I have checked with my hosting company. Everything is good in the Php.ini file. Http uploads are enabled. I still am having issues. Any help would be much appriecated.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: HTTP Upload troubles
« Reply #11 on: July 26, 2006, 05:30:36 pm »

Create a new script 'test.php' in your coppermine folder containing following code..

Code: [Select]
<form enctype="multipart/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="300000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File"></form>
</form>
<?php

if (isset($_FILES['userfile'])) {
  
$uploaddir 'albums/edit';
  
  print 
"<pre>";
  if (
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir $_FILES['userfile']['name'])) {
      print 
"File is valid, and was successfully uploaded.  Here's some more debugging info:\n";
      
print_r($_FILES);
  } else {
      print 
"File uploading failed!  Here's some debugging info:\n";
      
print_r($_FILES);
  }
}
?>


Then open http://yoursite.com/cpgFolder/test.php in a browser and try to upload a small size file/photo. Report here the output you get after uploading the file.
Logged
Chief Geek at Ranium Systems

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #12 on: July 26, 2006, 05:44:12 pm »

Ok, i got this response
Code: [Select]
File uploading failed!  Here's some debugging info:
Array
(
    [userfile] => Array
        (
            [name] => rr.JPG
            [type] =>
            [tmp_name] =>
            [error] => 6
            [size] => 0
        )

)
Logged

Nibbler

  • Guest
Re: HTTP Upload troubles
« Reply #13 on: July 26, 2006, 05:57:39 pm »

Value: 6; Missing a temporary folder.

Seek support from your host, after first deleting the test script !
Logged

jnc2000

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Thatstits!
Re: HTTP Upload troubles
« Reply #14 on: July 26, 2006, 06:56:17 pm »

issue resolved.

Thank you
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.