I’m working on a VB.NET web application and I need to create a file upload feature that works like the one you see in popular email services. You know, where users can drag files directly into the browser window or click to browse and select multiple files at once.
Right now I only have a basic file upload control but I want something more modern and user-friendly. I’m looking for a solution that allows users to see upload progress, handle multiple files, and maybe even show file previews before uploading.
Has anyone implemented something like this before? What approaches or libraries would you recommend for achieving this kind of functionality in a VB.NET web application? Any code examples or step-by-step guidance would be really helpful.
I’m open to using JavaScript libraries if needed, but I want to make sure everything integrates well with my existing VB.NET backend code.
I implemented a similar solution a while ago using Dropzone.js alongside a VB.NET backend, and it turned out to be quite effective. Dropzone.js simplifies the drag-and-drop functionality in the browser, allowing users to see file previews and upload progress effortlessly. You just need to set up a div with the dropzone class and initialize it with some straightforward JavaScript. For your backend, you’ll want to handle the POST requests for file uploads using your existing VB.NET setup. It’s also crucial to enforce file size limits and validation rules for security. If you’re handling larger files, consider implementing chunked uploads for a smoother experience. The documentation is very thorough, and there are plenty of customization options available to align with your application’s design.
i’d use FilePond - it plays nice with vb.net and the built-in previews are solid. just set up a generic handler (.ashx) to catch the files server-side. way lighter than dropzone and you can actually customize how it looks without fighting it.