coppermine-gallery.com/forum

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 JUpload by etienne_sf => Topic started by: letutu on September 25, 2009, 09:34:22 PM

Title: Directory in 744 using JUPLOAD
Post by: letutu on September 25, 2009, 09:34:22 PM
Hi,

User of JUPLOAD 3.6.2 for uploading picture on coppermine galery i have a big bug with JUPLOAD.

My website is hosted by freeheberg.

When i upload picture by JUPLOAD, the permissions are set but with wrong value.

Directory created by JUPLOAD is in 744 and finally my pictures doesn't appear on my galery (RED CROSS).

If i manually modify permissions it's ok but when i upload new photos problem still present on new pictures only.

Please help me :)

Thanks.




Title: Re: Directory in 744 using JUPLOAD
Post by: letutu on September 25, 2009, 10:56:57 PM
Reply for Etienne_sf

My problem is due to function "create directory" in file --> j_upload_management_inc.php

If i upload all my pictures in primary directory created by COPPERMINE all is ok.

So in your plugin i have disable this function :

   //If the directory doesn't exist, we try to create it.
      //if (!is_dir($dest_dir_jupload)) {
      //     echo ("[DEBUG] j_picmgmt.inc.php: the directory does't exist. We create it.\n");
      //   @mkdir($dest_dir_jupload, octdec($CONFIG['default_dir_mode']));
      //}
      
and now is working with all file in one directory --> " Not efficient ... but it works!  :-) "   lol :D :p

oucchhhh i'm quite sure to pass a very good night after this problem is solved ;)   

 
Title: Re: Directory in 744 using JUPLOAD
Post by: etienne_sf on September 28, 2009, 10:19:56 PM
Hum, hum,

  I added this code, to have less files per directory.   Seems to be a bad idea, at least on your system.
I'll remove this code.

Do you have the PHP safe_mode enabled ?


Etienne