When deleting post that has no standard file folder 'uploads' is changed to 'uploads.Array'. Analyzing the code identified that last parameter of the method '_deleteFile:$path' when not informed because this fault line 642.
642: $file = new File($basePath . basename($path));
To fix the problem I added the following checks at the beginning of the method:
630: if (is_null($path)) return false;
My question is whether there was a need this fix or any parameters in $ actAs: Uploader.FileValidation or $ actAs: Uploader.Attachment could avoid this problem.
Note: I identified this situation records that do not have linked files. For records that have the plugin files works normally.
Hi Miles,
First, congratulations for the great work.
When deleting post that has no standard file folder 'uploads' is changed to 'uploads.Array'. Analyzing the code identified that last parameter of the method '_deleteFile:$path' when not informed because this fault line 642.
To fix the problem I added the following checks at the beginning of the method:
My question is whether there was a need this fix or any parameters in $ actAs: Uploader.FileValidation or $ actAs: Uploader.Attachment could avoid this problem.
Note: I identified this situation records that do not have linked files. For records that have the plugin files works normally.
Best regards, Marcos