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 9185471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:17:05+00:00 2026-06-17T19:17:05+00:00

I am working on drag and drop functionality on a WebView. Is there anything

  • 0

I am working on drag and drop functionality on a WebView. Is there anything similar to hfs promise(cocoa environment) kind of drag and drop on html5 environment?

I am expecting something like if I pass url from where a file has to be downloaded with the clipboard that file should get downloaded where the drop occurs on say downloads folder.

  • 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-06-17T19:17:06+00:00Added an answer on June 17, 2026 at 7:17 pm

    There happens to be a delegate to webview using which one can get an event when an element is getting dragged.

    • (void)webView:(WebView *)webView willPerformDragSourceAction:(WebDragSourceAction)action fromPoint:(NSPoint)point withPasteboard:(NSPasteboard *)pasteboard

    You get the access to the pasteboard and its contents which can be used to make decisions on what what type of dragging is about to happen and leaves you with an option of changing the pasteboard and starting your own drag session or leave it alone. I will be choosing the former and implement HFS promise to download a file when the drop occurs.

    I didn’t find any method using html5 alone to address the problem. However, I found html5 code that does what is required but works on chrome alone. Refer below link:(http://www.html5rocks.com/en/tutorials/casestudies/box_dnd_download/)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a large application and am adding some drag/drop functionality to
I'm currently working on a project at work using the HTML5 Drag and Drop
I'm currently working on a drag and drop functionality and luckily I found a
I am working on the flex tree drag and drop functionality and i have
I am creating an application where I am implementing Html5 Drag and Drop Functionality,
I’m making a custom shelf. I’ve got drag and drop functionality working, but I
I'm working on a drag'n'drop functionality in a GWT project and I need to
I'm working on this drag and drop application with jquery/javascript, and I'm having to
I am working on a project. It does with drag and drop this is
I working on Eclipse plugin and i need to perform drag&drop support to editor.

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.