Re: Apache configurations for HTTP PUT
Posted: Mon Nov 02, 2009 5:08 am
Hello.
I managed to fix the previous problem, where the uploaded files with subfolders were messed up. The cause and fix for this is in this condition based on get_magic_quotes_gpc (in PHP).
if(get_magic_quotes_gpc())
{
$relative = stripslashes($relative);
$file_name = stripslashes($file_name);
}
Removing the above fixed the messed up subfolders.
Only one issue left, which is on resume and ignore (uploaded files). While the subfolders and files are now properly uploaded, if you try to upload the same subfolders again, it won't detect that they have been previously uploaded and would upload the same thing again.
Uploading single files without subfolders work well.
Thanks.
I managed to fix the previous problem, where the uploaded files with subfolders were messed up. The cause and fix for this is in this condition based on get_magic_quotes_gpc (in PHP).
if(get_magic_quotes_gpc())
{
$relative = stripslashes($relative);
$file_name = stripslashes($file_name);
}
Removing the above fixed the messed up subfolders.
Only one issue left, which is on resume and ignore (uploaded files). While the subfolders and files are now properly uploaded, if you try to upload the same subfolders again, it won't detect that they have been previously uploaded and would upload the same thing again.
Uploading single files without subfolders work well.
Thanks.