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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:14:33+00:00 2026-05-25T18:14:33+00:00

I want to get an icon’s image when a user drags and drops it

  • 0

I want to get an icon’s image when a user drags and drops it over some kind of div, but that it’ll show exactly what the user sees (e.g. thumbnail, *.ico), is it possible to do so, or does anyone know of any projects that do similar things?

  • 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-25T18:14:33+00:00Added an answer on May 25, 2026 at 6:14 pm

    I would suggest a mix of:

    This great drag and drop upload library:
    http://valums.com/ajax-upload/

    This javascript code to preview uploaded images before they upload
    How to upload preview image before upload through JavaScript

    You would have to add a listener in Valum’s uploader to get the file that is being uploaded and then display it using the code in the second link.

    Getting the local image path via javascript is not an easy task… and being able to do that while supporting most browsers will be even worst…

    An easier way to solve your problem would be to upload the image in a temporary location on your server, return that temporary path and display the image that was just uploaded. Then you add a second “Keep” and a “Discard” button that saves the uploaded image to a real path if the user likes what he uploaded and you delete the temporary image. Since your images are .ico, I assume they are not really big files, so they would upload pretty fast and the user would get a “preview” fast too using that technique.

    You should ask yourself if all the time invested on tweaking your code to show the user a preview before the upload really improves the user’s experience using your tool !

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

Sidebar

Related Questions

I want to get the system icon of a specified folder, but maybe the
this code get all img tags preg_match_all('/<img[^>]+>/i',$a,$page); but I want get tags that their
I want get all of the Geom objects that are related to a certain
I want to get website shortcut icon(favicon) and stylesheet path with zend_dom query $dom
I want to extract/read the button icon image as a Flex image component, then
I want to create a button with the stock Remove icon on it, but
I'd like to get the image that is being displayed on the UIImagePickerController when
hello expert, i want to get information of all apk in mobile, like name,icon,date
I want to show icon of apk file in my listview. How can i
I have a navigation bar that I want to get the width of each

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.