-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Added new upload image functionality #495
Conversation
Wow, this looks really nice!! I can do a full review after next Monday, we have a big release planned that day. |
@CompuIves Awesome! I look forward to it. We can also expand the functionality to upload all kinds of files. images, js source, json, etc. |
@CompuIves bump. I will fix the merge conflicts. Or should I just create a new pull request since there has been a lot of changes since my PR |
Hey @wuweiweiwu, I'm sorry for the late reply. I was working overtime for the Vue Amsterdam talk this time. Now I'm free again though. I've been looking a bit at ways to make file upload work and I really like how Snack does it, they open this modal: And let you drop files. I was thinking that I could open up an upload endpoint in CodeSandbox that you could call then. Then we'd return the URL to the relevant file. I'm sorry to barge in with these ideas, I hope you're still motivated to work on this 😄. If you are, maybe it would be cool to chat to bounce some ideas around in the Discord (https://discord.gg/KE3TbEZ). |
@CompuIves No probs! I was hoping to generalize the image upload process to other files as well :) Just joined the discord |
What kind of change does this PR introduce?
Feature!!
What is the current behavior?
#100 currently no way to upload images.
What is the new behavior?
Added upload image icon besides create file and create directory.
on click, pop up file dialog and then the user can chose an image to upload. File is created with original name in the project.
request sent with
isBinary: true
images are hosted by imgur :)
Checklist:
Here is what it looks like!