Advanced search  

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

Pages: [1]   Go Down

Author Topic: Uploading Problem  (Read 2671 times)

0 Members and 1 Guest are viewing this topic.

scope006

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Uploading Problem
« on: February 27, 2004, 10:07:53 pm »

I am unable to upload.  When I try I get the following error:

"No picture was uploaded. If you have really selected a picture to upload, check that the server allows file uploads..."

I checked the faq, and my /etc/php.ini file was setup correctly.  However the default upload tmp directory was not defined.  I am wondering if the default it is using is somehow disabled in apache or if there is some kind of .htaccess issue.

If it helps I am running the latest apache from the 1.3 tree, php 4.(latest as of January), and MySQL 4.(what ever is the latest).   Php and Mysql are functioning correctly for sure, I am running a site built on drupal.  Uploading is the only error I have come across, this is the 3rd (and coolest) image gallery package I have tried, so it must be a HTTP upload error.  

Please advise.  Thank you.

P.S.  would it matter that the path to cpg is "http:/site/dev/cpg" rather than "http:/site/cgp"?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Uploading Problem
« Reply #1 on: February 27, 2004, 10:20:45 pm »

Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

scope006

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
It did a little, but I am stuck.
« Reply #2 on: February 28, 2004, 12:11:52 am »

I did turn on debug mode and this is the error I get.  I looked at the file, and don't know what to edit, or what the problem is that is causing the error.

------------------------------------------------------
No picture was uploaded !

If you have really selected a picture to upload, check that the server allows file uploads...

File: /www/htdocs/drupal/dev/cpg/db_input.php - Line: 216


Notice: Undefined index: userpicture in /www/htdocs/drupal/dev/cpg/db_input.php on line 216
------------------------------------------------------

Here is that section from the file:
------------------------------------------------------
 // Test if the filename of the temporary uploaded picture is empty
        if ($HTTP_POST_FILES['userpicture']['tmp_name'] == '') cpg_die(ERROR, $lang_db_input_php['no_pic_uploaded'], __FILE__, __LINE__);
-------------------------------------------------------

Apparently you have to know php well to use this software ;)
Thanks for the help.

- Chad
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Uploading Problem
« Reply #3 on: February 28, 2004, 09:00:13 am »

well, the big question is: does your server allow http uploads. To find out, test-run a small script that does http uploads, or ask your webhost. If you're with a budget webhost (or even on free webhosting), it's possible that they disabled http uploads.
In fact, this is not a problem of coppermine (or php), but usually a matter of server setup.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.