Task 3 - update and delete old file

This commit is contained in:
PovilasKorop
2021-12-06 07:58:56 +02:00
parent 669b1de915
commit c72be05cea
6 changed files with 110 additions and 3 deletions
+8
View File
@@ -40,3 +40,11 @@ In `app/Http/Controllers/ProjectController.php` file, in the `store()` method, p
Test method `test_file_size_validation()`.
---
## Task 3. Update: Delete Old File
In `app/Http/Controllers/HouseController.php` file, in the `update()` method, we upload the new file but don't delete the old one. Help to clean up the disk and delete the old file.
Test method `test_update_file_remove_old_one()`.
---