-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Avatar by upload .glb file on admin system #5312
Conversation
@kimenyikevin |
files: [blob, thumbnail], | ||
args: [ | ||
{ | ||
key: 'avatars/public/CyberbotGold.glb', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to this fixed argument any avatar i upload update the CyberGold.glb entry
files: [blob, thumbnail], | ||
args: [ | ||
{ | ||
key: 'avatars/public/CyberbotGold.glb', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to this fixed argument any avatar i upload update the CyberGold.glb entry
a71fca4
to
84e438b
Compare
files: [blob, thumbnail], | ||
args: [ | ||
{ | ||
key: `avatars/public/${thumbnail['name']}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make it more uniwue you can append unicode timestamp with file name as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reason for this is because if a person accidentally uploads the same name for a new avatar file, it updates the previous avatar rather than adding a new one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made changes from backend, That is where i modify key property
|
7dc113a
to
ce974aa
Compare
@kimenyikevin the following things needs to be fixed:
|
3ae33d8
to
299e8b9
Compare
b9e3f04
to
98cd1c2
Compare
Summary
A summary of changes being made in this PR
Checklist
npm run check
npm run lint
npm run test:packages
npm run build-client
References
References to pertaining issue(s)
QA Steps
git checkout pr_branch_name
npm install
npm run dev-reinit
npm run dev
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.
Reviewers
Reviewers for this PR