Error 550 when deleting a directory via FTP

1

I'm using FileZilla. Here is the error when trying to delete a folder:

  

Answer: 550 Could not delete 33: Invalid argument

I followed a tutorial for image upload , the difference is that I created a folder with the user id and inside it there are the images that he uploaded.

In FTP, I have set the parent directory of images as 777

You should do something to set folder creation as readable and deletable via code, right? The sample code created on the server folders that can not be deleted or viewed.

    
asked by anonymous 01.04.2016 / 00:00

1 answer

1

Make sure that the user running php is the same one you logged into ftp. Use:

<?php
$userid = posix_geteuid();
$userInfo = posix_getpwuid($userid);
var_dump($userInfo);

If the user is different, it may occur that you could not delete because you do not own the folder, since it was created with php, then you must log in with the user that php is running.

    
01.04.2016 / 04:38