HTTP Upload troubles HTTP Upload troubles
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

HTTP Upload troubles

Started by jnc2000, July 19, 2006, 06:30:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jnc2000

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

Joachim Müller


jnc2000

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.

Abbas Ali

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

jnc2000

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

Debug is one for everyone.

Joachim Müller

Does your server allow http uploads?

jnc2000

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

jnc2000

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

Nibbler

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

jnc2000

everything looks fine then from configuration standpoint, correct?

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

jnc2000

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.

Abbas Ali

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.
Chief Geek at Ranium Systems

jnc2000

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
        )

)

Nibbler

Value: 6; Missing a temporary folder.

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

jnc2000