Replies: 6 comments
-
|
Hi @kminek, you're welcome. While my clear intention is to throw errors if file deletion fails, I'll recheck the possibilities of surpassing them. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
What is the exception it throwing while failing to delete files or directories? Is it permission issue or file missing or anything else? The screenshot scenario is a valid one. If you could reproduce the delete exception and share the details, it would be lot easier for me to come up with a solution. |
Beta Was this translation helpful? Give feedback.
-
|
wait this is valid scenario? it throws: if path is empty string (as in my screenshot) it executes |
Beta Was this translation helpful? Give feedback.
-
Yes. It is a valid scenario when a chunk upload request is made but no chunk is uploaded yet. The package creates a directory for the chunks and database state is like the screenshot you have shared. During cleaning, the package first tries to delete the file and then the directory. As by default Thanks for the exception message. I now know where to look at. I'll try running the tests with storage throw exception enabled. Let's see what changes I come up with. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
First of all thanks for great library!
I think cleanup command could be improved a little to be more fail-safe.
Those disk operations can throw exceptions:
https://github.com/rahulhaque/laravel-filepond/blob/12.x/src/Console/FilepondClear.php#L66
https://github.com/rahulhaque/laravel-filepond/blob/12.x/src/Console/FilepondClear.php#L67
This results in dead-loop because script exists at first error and no more records are cleared.
Beta Was this translation helpful? Give feedback.
All reactions