Reverted recent accidental changes

This commit is contained in:
2020-11-02 22:04:57 +00:00
parent e4fb438721
commit d53e8135ee
2 changed files with 21 additions and 16 deletions

View File

@@ -85,7 +85,7 @@ class TeamFileController extends Controller
{
try
{
return Storage::download($teamFile->fs_location, $teamFile->name);
return Storage::download('uploads/' . $teamFile->fs_location, $teamFile->name);
}
catch (FileNotFoundException $ex)
{
@@ -130,7 +130,7 @@ class TeamFileController extends Controller
try
{
Storage::delete($teamFile->fs_location);
Storage::delete('uploads/' . $teamFile->fs_location);
$teamFile->delete();
$request->session()->flash('success', 'File deleted successfully.');