Uploading Problem Uploading Problem
 

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

Uploading Problem

Started by scope006, February 27, 2004, 10:07:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scope006

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"?

Casper

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

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

Joachim Müller

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