Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default [Help] Drag and drop files?

    Could someone tell mewhat languages I need to use and what i'd need to do to be able to let people just drag and drop the image they want to upload into the provided area.

    Example:http://www.mediafire.com/

    (I'd rather you didn't just give me code and say here, I'm trying to learn so just copy and pasting code does nothing for me.)

  2. #2
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    It's likely a HTML5 feature. Found an article with an example but you said you wanted to learn so I'm giving you the spec involved with it:
    http://dev.w3.org/2006/webapi/FileAPI/
    Chippiewill.


  3. #3
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    It's likely a HTML5 feature. Found an article with an example but you said you wanted to learn so I'm giving you the spec involved with it:
    http://dev.w3.org/2006/webapi/FileAPI/
    An example is what i wanted I meant i didn't want someone to do it for me.

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    http://www.thecssninja.com/javascrip...nd-drop-upload
    Just google drag and drop html5 upload.
    Chippiewill.


  5. #5
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    How do you get the file information of the image you are dragging from your PC? (I know how to get the information of an image already on the website but not from your PC).

  6. #6
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Urm, when you drag a file into the web browser it copies it as it's path so i guess if you drag it onto a "drag and drop" box it gets the path and using js uploads that file.
    Chippiewill.


  7. #7
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    Urm, when you drag a file into the web browser it copies it as it's path so i guess if you drag it onto a "drag and drop" box it gets the path and using js uploads that file.
    I knew I needed to do that but I don't know the code for it.

  8. #8
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    If you look through the files and documentation for this:
    http://blueimp.github.com/jQuery-File-Upload/

    You mind find what you're looking for.
    Chippiewill.


  9. #9
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    If you look through the files and documentation for this:
    http://blueimp.github.com/jQuery-File-Upload/

    You mind find what you're looking for.
    ok thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •