Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7400097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:09:06+00:00 2026-05-29T04:09:06+00:00

I have been trying to figure out a reliable solution in provide a drag-drop-upload

  • 0

I have been trying to figure out a reliable solution in provide a drag-drop-upload section on web application utilizing .NET. I’ve experimented with Silverlight 4, but it’s not possible to use this feature in this manner if not using out of browser.

I have read these articles

file upload via drag and drop

file upload using drag drop

but they both reference http://www.plupload.com/ which is cool, but I would like to develop my own solution.

Does anyone have advice on an approach? do you have to use a client side technology to do most of the work, and then send data to the server, or… well, I’m just not sure. I realize most people would just opt for using someone else’s solution, or a toolkit… but hey, what’s the fun in that? : )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:09:07+00:00Added an answer on May 29, 2026 at 4:09 am

    The best approach is using Silverlight.. at least that’s what I found. Go to this guys example, and just analyze how he’s utilizing a web service. I took this, replaced all his web service stuff with WCF RIA services, and bam!.. works like a charm. IF you mess around with it for a while, you’ll find there’s a ton of way to throw the FileSteam or Byte() around to save it to disk if you want to… any who, that’s my answer to my own question. Note: to get SL drag drop to work on Mac browsers, there is additional coding needed (drop events need to be handled in the JS, not in SL).

    If HTML5 is an option, using the new JS ‘drop’ event works pretty sweet too. One key point when using this is to prevent default on ‘dragover’, ‘dragenter’, & ‘drop’

    function ConfigDropElement() {
    
        document.getElementById('dragarea').addEventListener("dragover", handleDragOver, false);
    
        document.getElementById('dragarea').addEventListener("dragenter", function (e) { e.preventDefault(); }, false);
    
        document.getElementById('dragarea').addEventListener("drop", function (event) {
    
            event.preventDefault();
            event.stopPropagation();
    
            for (var i = 0; i < event.dataTransfer.files.length; i++) {
    
                var file = event.dataTransfer.files[i];
    
                var fi = new FileInfoElement();
                fi.WriteInfo(file.name);
    
                var reader = new FileReader();
                reader.readAsDataURL(file);
    
                var fi = new FileInfoElement();
                fi.WriteInfo(file.name);
    
    
            }
    
    
    
        }, false);
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to figure out a solution but nothing has really presented
I have been trying to figure out the logic of upgrading web applications. Like
I have been trying to figure out how to cancel a file upload to
I have been trying to figure out a way to tag several methods from
I have been trying to figure out why and how to use performSelector. I
I have been trying to figure this out for way to long tonight. I
I have been trying to figure this out for some time. It seems lots
I have been going mad trying to figure out why my scripts weren't working,
I have been pulling my hair out trying to figure out what I can't
I have been scratching my head for hours trying to figure out why this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.