Skip to content

Commit

Permalink
change the string name in uploadProfileFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Herman-Riah19 committed Aug 3, 2023
1 parent 3d4226f commit 1887d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
2 changes: 1 addition & 1 deletion app/Services/AssetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class AssetService {
const file = await request.file(name)
let fileName = ''
if (file) {
fileName = profile + '_' + string.generateRandom(8) +'.' + file.extname
fileName = `${profile}_${string.generateRandom(8)}.${file.extname}`
await file.moveToDisk(`./${name}/`, {
name: fileName,
})
Expand Down
48 changes: 1 addition & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1887d69

Please sign in to comment.