This topic is locked

Upload Issue

6/24/2007 6:44:49 PM
PHPRunner General questions
I
ialameh author

Hello,
I have created a form with an upload option
If I did not select a file, I get a permission error
Any clue
Issam

Alexey admin 6/25/2007

Issam,
show me the full error message.

D
diego 6/26/2007

I have a same error

Menssege return this

If i select a file no error return

PHP Ocorreu o erro…

Informações Técnicas

Tipo de Erro 2

Descrição do Erro chmod() [function.chmod]: Operation not permitted

Sergey Kornilov admin 6/26/2007

diego,
make sure web server user has WRITE permissions on the folder where you upload documents.

D
diego 6/26/2007

ok full permission on this folder

error only If I did not select any file, if file form is blank

if i select any file this error not present

D
diego 6/26/2007

[SOLVED]

I have solved this issue white commeting a line and write ; on line

on add script
Original code

foreach ($files_move as $file)

{

move_uploaded_file($file[0],$file[1]);

if(strtoupper(substr(PHP_OS,0,3))!="WIN")

chmod($file[1],0777);

}


My modify code

foreach ($files_move as $file)

{

move_uploaded_file($file[0],$file[1]);

if(strtoupper(substr(PHP_OS,0,3))!="WIN");

// chmod($file[1],0777);

}

Alexey admin 6/27/2007

Diego,

thank you for pointing me to this bug.

We'll fix it with the next update of PHPRunner.