coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: jnc2000 on July 19, 2006, 06:30:15 AM

Title: HTTP Upload troubles
Post by: jnc2000 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
Title: Re: HTTP Upload troubles
Post by: Joachim Müller on July 19, 2006, 08:31:56 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: HTTP Upload troubles
Post by: jnc2000 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.
Title: Re: HTTP Upload troubles
Post by: Abbas Ali on July 19, 2006, 12:24:27 PM
"Enable debug mode for everyone" is the specific part we are looking for.
Title: Re: HTTP Upload troubles
Post by: jnc2000 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.
Title: Re: HTTP Upload troubles
Post by: Joachim Müller on July 19, 2006, 04:56:48 PM
Does your server allow http uploads?
Title: Re: HTTP Upload troubles
Post by: jnc2000 on July 19, 2006, 05:32:13 PM
yes, it is set in the php.ini to allow uploads.
Title: Re: HTTP Upload troubles
Post by: jnc2000 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.
Title: Re: HTTP Upload troubles
Post by: Nibbler on July 20, 2006, 12:49:53 AM
Try asking your host for support or testing with a simple upload script.
Title: Re: HTTP Upload troubles
Post by: jnc2000 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.
Title: Re: HTTP Upload troubles
Post by: jnc2000 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.
Title: Re: HTTP Upload troubles
Post by: Abbas Ali on July 26, 2006, 05:30:36 PM
Create a new script 'test.php' in your coppermine folder containing following code..


<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.
Title: Re: HTTP Upload troubles
Post by: jnc2000 on July 26, 2006, 05:44:12 PM
Ok, i got this response

File uploading failed!  Here's some debugging info:
Array
(
    [userfile] => Array
        (
            [name] => rr.JPG
            [type] =>
            [tmp_name] =>
            [error] => 6
            [size] => 0
        )

)
Title: Re: HTTP Upload troubles
Post by: Nibbler 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 !
Title: Re: HTTP Upload troubles
Post by: jnc2000 on July 26, 2006, 06:56:17 PM
issue resolved.

Thank you