Skip to content
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

File Upload and Preview #637

Merged
merged 4 commits into from
Oct 4, 2023
Merged

Conversation

darshbaxi
Copy link
Contributor

@darshbaxi darshbaxi commented Oct 2, 2023

Fixes: #623
I have made the file upload and preview app in which users can upload files and preview those files. I developed it using the block of million.js.
image
image

Status

  • Code changes have been tested against prettier, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

  • This PR changes the codebase
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
    • This PR changes the internal workings with no modifications to the external API (bug fixes, performance improvements)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
million ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 4:08pm
million-kitchen-sink ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 4:08pm
sink ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 4:08pm

@CLAassistant
Copy link

CLAassistant commented Oct 2, 2023

CLA assistant check
All committers have signed the CLA.

}

const FileUpload=block(({file})=>{
console.log(file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, you left this here😉

console.log(file)
return(
<div className='preview' >
<img src={file} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have an 'alt' too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,I will fix this:)

@darshbaxi
Copy link
Contributor Author

@deeola suggested changes made. please review it again:)

@aidenybai
Copy link
Owner

Please run pnpm run cleanup

@darshbaxi
Copy link
Contributor Author

@aidenybai requirement satisfy to run 'pnpm -w run cleanup' command. please review it again:)

@tobySolutions
Copy link
Contributor

Have you worked on the requested changes @deeola?

@darshbaxi
Copy link
Contributor Author

@tobySolutions Yes, I made the all requested changes suggested.

Copy link
Contributor

@tobySolutions tobySolutions left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you separate the components? It's not really best practice to nest components. Thank you.

@darshbaxi
Copy link
Contributor Author

darshbaxi commented Oct 3, 2023

@tobySolutions Required changes made, please review it again:)
Thank you

Copy link
Contributor Author

@darshbaxi darshbaxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobySolutions,I made the suggested changes:)

Copy link
Contributor

@tobySolutions tobySolutions left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tobySolutions tobySolutions merged commit 5b29e40 into aidenybai:main Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kitchen Sink: Build A File Upload and Preview Component
5 participants