Reply to Re: Directory Creation Problem

Re: Directory Creation Problem new!
by Speshdiv, 17 years, 10 months ago
I have a solution for this issue. I also had this error. You can only delete the locked files using Linux commands via SSH.

The thing you've got to do is this: disable these in both class.upload.php and upload.php:

$this->dir_auto_create   = false;    
$this->dir_auto_chmod    = false;    
$this->dir_chmod         = false;

If you follow my solution, you don't let the script generate your folders. You create your own, using these commands, just after the <?php of upload.php

$folderName = $_POST["folderName"];
$foo='../YourFolder/'.$folderName.'/';
$old_umask = umask(0);
mkdir($foo,0777);
umask($old_umask);

$folderName is a variable you post from the form Process('../YourFolder/'.$imageName.'');

You'll see that the directories and files you create are completely writeable. Maybe this is a nice thing to include with the oncoming version?

Greetings!Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important