You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
I have an entity with one required file field and several optional files ("allowEmpttFile" in my model table). The upload and updating of the files work as intended without issue. The problem comes when I try to delete the entity.
It's throwing me this warning for each of the optional files not present for the entity: "rmdir( url ) [function.rmdir]: No such file or directory [in .\vendor\davidyell\proffer\src\Lib\ProfferPath.php, line 272]"
("url" in this case is the expected directory for the optional files)
The entity is deleted without issue, but CakePHP is throwing me that warning and the redirect after the deletion is not working.
Is there a way to tell Proffer not to try to delete that directory if the file was an optional field?
The text was updated successfully, but these errors were encountered:
I'm not sure there is code for that use-case. You would need to create your own Path class, add it to the configuration and then you could manage the deleteFiles() method yourself.
I have an entity with one required file field and several optional files ("allowEmpttFile" in my model table). The upload and updating of the files work as intended without issue. The problem comes when I try to delete the entity.
It's throwing me this warning for each of the optional files not present for the entity: "rmdir( url ) [function.rmdir]: No such file or directory [in .\vendor\davidyell\proffer\src\Lib\ProfferPath.php, line 272]"
("url" in this case is the expected directory for the optional files)
The entity is deleted without issue, but CakePHP is throwing me that warning and the redirect after the deletion is not working.
Is there a way to tell Proffer not to try to delete that directory if the file was an optional field?
The text was updated successfully, but these errors were encountered: