File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
+
2
3
# 🚀Simple Laravel Encrypt Upload File
3
4
[ ![ GitHub license] ( https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square )] ( https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE ) [ ![ Support me] ( https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square )] ( https://www.buymeacoffee.com/OBaAofN )
4
5
79
80
80
81
public function upload_file(Request $request)
81
82
{
82
- $file = 'encrypted_file.doc ';
83
+ $file = 'encrypted_file.txt ';
83
84
return FileSafe::download($file);
84
- //This is to decrypt files to be downloaded.
85
+ //decrypt files to be downloaded.
85
86
}
86
87
}
87
88
89
+ <h3 >View Raw File</h3 >
90
+
91
+ ...
92
+ $file = 'encrypt_file.txt';
93
+ return FileSafe::file($file)->raw();
94
+ ...
95
+
96
+ <h2 >Contribution</h2 >
97
+ ENG:<br >
98
+ If you want to contribute this project and make it better, your help is very welcome.<br >
99
+ IDN:<br >
100
+ Jika Anda ingin berkontribusi dalam proyek ini dan menjadikannya lebih baik, bantuan Anda sangat kami harapkan.
101
+
102
+ ***
You can’t perform that action at this time.
0 commit comments